Page 1 of 1

How to run .jnlp files? [SOLVED]

Posted: Fri 03 Jan 2014, 09:12
by fobq
Hi,
I am in Precise 5.7.1 (frugal)
I just downloaded the latest java: jre 7_45. It includes Java Webstart as well.
I just don't know how to run jnlp files.
Thank you!

The issue has been solved:
http://murga-linux.com/puppy/viewtopic. ... 907#750907
and
http://murga-linux.com/puppy/viewtopic. ... 026#751026

Posted: Sun 12 Jan 2014, 18:36
by darkcity
As far as I know it should be run with /usr/bin/javaws

From the browser window, use 'open file' and select /usr/bin/javaws

From the filer window (rox), left click on .jnlp file and use
'file '*.jnlp' > set run action

In the 'use shell command' text box type, /usr/bin/javaws "$@"

----

That works to load up Java, my problem is Blackboard Collaborate says unable to launch, error message-
JreExecException[ Could not launch the Java Runtime Environment version /usr/java]
at com.sun.javaws.Launcher.relaunch(Unknown Source)
...
Edit: all programs give same error, along with
java.io.IOException: Cannot run program "/usr/java": error=13, Permission denied

Posted: Mon 13 Jan 2014, 11:13
by fobq
I set run action, but it still does nothing. I set the file executable as well.

Re: How to run .jnlp files?

Posted: Mon 13 Jan 2014, 12:09
by OscarTalks
fobq wrote:I just downloaded the latest java: jre 7_45
Where did you download the java jre from and what did you do with it?
If you just unpacked the tarball from the java website you will at least need to symlink the bins into the PATH somewhere (eg /usr/bin or /usr/local/bin).

Posted: Mon 13 Jan 2014, 12:17
by fobq
I downloaded the RPM file from:

https://www.java.com/en/download/linux_ ... ?locale=en

it made a folder called java in /usr, I moved it to /mnt/home/programs and simlinked it back to /usr

Posted: Mon 13 Jan 2014, 20:39
by OscarTalks
Open a terminal and type javaws and see what you get. Is it found?
The cluster of java executables including javaws is probably now in a sub-directory such as /mnt/home/programs/java/jre*/bin where it won't automatically be found.
Symlink each of them into /usr/bin and you can set the run action as just javaws "$@" Otherwise, after doing the symlinks, open a terminal and type javaws /path/to/yourfile.jnlp and see what the output is.

Posted: Tue 14 Jan 2014, 08:25
by fobq
first, javaws command was not found.
After, I made simlinks as you told and typed javaws.

Code: Select all

# javaws
Java Web Start splash screen process exiting ...
Bad installation: JAVAWS_HOME not set: No such file or directory
After I set run action to my jnlp files: javaws "$@" but nothing

After I tried from command line, as you recommended:

Code: Select all

 
# javaws /mnt/home/programs/abevjava_install.jnlp
Java Web Start splash screen process exiting ...
Bad installation: JAVAWS_HOME not set: No such file or directory

Posted: Tue 14 Jan 2014, 09:06
by OscarTalks
Perhaps the RPM does not install java in a way that is suitable for Puppy.
I am no expert on java and have never tried to run a .jnlp file, but I have a jre .sfs package which places the java folder in /usr/local/java and the symlinks in /usr/local/bin

If I load the .sfs and type javaws in terminal it looks promising though:-

Code: Select all

# javaws
Java(TM) Web Start 10.45.2.18-fcs 
Usage:	javaws [run-options] <jnlp-file>
      	javaws [control-options]

where run-options include:
  -verbose       	display additional output
  -offline       	run the application in offline mode
  -system        	run the application from the system cache only
  -Xnosplash     	run without showing a splash screen
  -J<option>     	supply option to the vm
  -wait          	start java process and wait for its exit

control-options include:
  -viewer        	show the cache viewer in the java control panel
  -clearcache    	remove all non-installed applications from the cache
  -uninstall     	remove all applications from the cache
  -uninstall <jnlp-file>              	remove the application from the cache
  -import [import-options] <jnlp-file>	import the application to the cache

import-options include:
  -silent        	import silently (with no user interface)
  -system        	import application into the system cache
  -codebase <url>	retrieve resources from the given codebase
  -shortcut      	install shortcuts as if user allowed prompt
  -association   	install associations as if user allowed prompt

#
I have uploaded the package in case you want to give it a try.
http://smokey01.com/OscarTalks/jre-1.7u45-i586.sfs

Posted: Tue 14 Jan 2014, 09:54
by fobq
Yes, it was the problem. I replaced the rpm by the sfs package, so I could run the .jnlp file.
Thank you very much!

Posted: Tue 14 Jan 2014, 19:06
by darkcity
Thanks OscarTalks Image

Your version version of java jre-1.7u45-i586.sfs works with webstart .jnlp apps for me. Shinobar's version failed ( see above {permission error?}).

One difference I noticed is that you link to the binaries (javaws etc) from /usr/local/bin rather than /usr/bin don't know if that is the fix or something else?

Thanks again!