How to run .jnlp files? [SOLVED]

Booting, installing, newbie
Post Reply
Message
Author
fobq
Posts: 101
Joined: Mon 19 Aug 2013, 11:41
Location: Hungary

How to run .jnlp files? [SOLVED]

#1 Post 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
Last edited by fobq on Tue 14 Jan 2014, 09:58, edited 2 times in total.

User avatar
darkcity
Posts: 2534
Joined: Sun 23 May 2010, 19:16
Location: near here
Contact:

#2 Post 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

fobq
Posts: 101
Joined: Mon 19 Aug 2013, 11:41
Location: Hungary

#3 Post by fobq »

I set run action, but it still does nothing. I set the file executable as well.

User avatar
OscarTalks
Posts: 2196
Joined: Mon 06 Feb 2012, 00:58
Location: London, England

Re: How to run .jnlp files?

#4 Post 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).
Oscar in England
Image

fobq
Posts: 101
Joined: Mon 19 Aug 2013, 11:41
Location: Hungary

#5 Post 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

User avatar
OscarTalks
Posts: 2196
Joined: Mon 06 Feb 2012, 00:58
Location: London, England

#6 Post 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.
Oscar in England
Image

fobq
Posts: 101
Joined: Mon 19 Aug 2013, 11:41
Location: Hungary

#7 Post 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

User avatar
OscarTalks
Posts: 2196
Joined: Mon 06 Feb 2012, 00:58
Location: London, England

#8 Post 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
Oscar in England
Image

fobq
Posts: 101
Joined: Mon 19 Aug 2013, 11:41
Location: Hungary

#9 Post 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!
Last edited by fobq on Wed 15 Jan 2014, 10:36, edited 1 time in total.

User avatar
darkcity
Posts: 2534
Joined: Sun 23 May 2010, 19:16
Location: near here
Contact:

#10 Post 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!

Post Reply