Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Sun 21 Dec 2014, 02:51
All times are UTC - 4
 Forum index » House Training » Beginners Help ( Start Here)
How to run .jnlp files? [SOLVED]
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [10 Posts]  
Author Message
fobq

Joined: 19 Aug 2013
Posts: 101
Location: Hungary

PostPosted: Fri 03 Jan 2014, 05:12    Post subject:  How to run .jnlp files? [SOLVED]  

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.php?p=750907#750907
and
http://murga-linux.com/puppy/viewtopic.php?p=751026#751026

Last edited by fobq on Tue 14 Jan 2014, 05:58; edited 2 times in total
Back to top
View user's profile Send private message 
darkcity


Joined: 23 May 2010
Posts: 2481
Location: near here

PostPosted: Sun 12 Jan 2014, 14:36    Post subject:  

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-

Quote:
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
Quote:

java.io.IOException: Cannot run program "/usr/java": error=13, Permission denied

_________________
helping Wiki for help | IF SendSpace link = "dead" THEN PM me ("up file to http://meownplanet.net/")
Back to top
View user's profile Send private message Visit poster's website 
fobq

Joined: 19 Aug 2013
Posts: 101
Location: Hungary

PostPosted: Mon 13 Jan 2014, 07:13    Post subject:  

I set run action, but it still does nothing. I set the file executable as well.
Back to top
View user's profile Send private message 
OscarTalks

Joined: 05 Feb 2012
Posts: 937
Location: London, England

PostPosted: Mon 13 Jan 2014, 08:09    Post subject: Re: How to run .jnlp files?  

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

Back to top
View user's profile Send private message 
fobq

Joined: 19 Aug 2013
Posts: 101
Location: Hungary

PostPosted: Mon 13 Jan 2014, 08:17    Post subject:  

I downloaded the RPM file from:

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

it made a folder called java in /usr, I moved it to /mnt/home/programs and simlinked it back to /usr
Back to top
View user's profile Send private message 
OscarTalks

Joined: 05 Feb 2012
Posts: 937
Location: London, England

PostPosted: Mon 13 Jan 2014, 16:39    Post subject:  

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

Back to top
View user's profile Send private message 
fobq

Joined: 19 Aug 2013
Posts: 101
Location: Hungary

PostPosted: Tue 14 Jan 2014, 04:25    Post subject:  

first, javaws command was not found.
After, I made simlinks as you told and typed javaws.

Code:
# 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:
 
# 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
Back to top
View user's profile Send private message 
OscarTalks

Joined: 05 Feb 2012
Posts: 937
Location: London, England

PostPosted: Tue 14 Jan 2014, 05:06    Post subject:  

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

Back to top
View user's profile Send private message 
fobq

Joined: 19 Aug 2013
Posts: 101
Location: Hungary

PostPosted: Tue 14 Jan 2014, 05:54    Post subject:  

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, 06:36; edited 1 time in total
Back to top
View user's profile Send private message 
darkcity


Joined: 23 May 2010
Posts: 2481
Location: near here

PostPosted: Tue 14 Jan 2014, 15:06    Post subject:  

Thanks OscarTalks

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!

_________________
helping Wiki for help | IF SendSpace link = "dead" THEN PM me ("up file to http://meownplanet.net/")
Back to top
View user's profile Send private message Visit poster's website 
Display posts from previous:   Sort by:   
Page 1 of 1 [10 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » Beginners Help ( Start Here)
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0852s ][ Queries: 12 (0.0204s) ][ GZIP on ]