LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 01-13-2012, 07:18 AM   #1
BratPit
Member
 
Registered: Jan 2011
Posts: 250

Rep: Reputation: 100Reputation: 100
Sun Java not run some jnlp file


Hi

Can not run aplet from jnlp file from this link:

I checked it on Slackware 13.37,13.0 and slack based distro Salix.
Always error "Can not ran Java Env /usr/lib/java".

On other distros installed on VirtualBox : Debian, Centos Fedora everything works OK .
Java version 6_24 but on others works too.

Only on slack based distro do not work.

I think it is a bug in Java install on Slackware package because on other distros on the same version Java it works OK.

Maybe some clue.I gave up.

B.P

Last edited by BratPit; 01-13-2012 at 08:56 AM.
 
Old 01-13-2012, 08:11 AM   #2
corp769
LQ Guru
 
Registered: Apr 2005
Location: /dev/null
Posts: 5,818

Rep: Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007
Instead of using the "java" command, have you tried using "javaws" to run the jnlp file?
 
Old 01-13-2012, 08:42 AM   #3
BratPit
Member
 
Registered: Jan 2011
Posts: 250

Original Poster
Rep: Reputation: 100Reputation: 100
Yes .
I wrote:



Everyone can check this.
 
Old 01-13-2012, 09:10 AM   #4
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106
It works fine on my Slackware64 13.37.
I get a polish login screen.

Eric
 
Old 01-13-2012, 09:25 AM   #5
BratPit
Member
 
Registered: Jan 2011
Posts: 250

Original Poster
Rep: Reputation: 100Reputation: 100
Bob

But on my 32 bit is

"Unable to launch the aplication"

both on laptop and on desktop.

I did not check on Slack64.

Maybe it is time to go for 64 bits :-)

Thanks.
 
Old 01-13-2012, 09:49 AM   #6
phenixia2003
Senior Member
 
Registered: May 2006
Location: France
Distribution: Slackware
Posts: 1,052

Rep: Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008
Hello,

Quote:
Originally Posted by BratPit View Post
But on my 32 bit is

"Unable to launch the aplication"

both on laptop and on desktop.

I did not check on Slack64.

Maybe it is time to go for 64 bits :-)
Well, I tried on my Slackware-32 and I got the error with the JRE (ie 6u25),
but, with the (stock) JDK, the application works. So replacing the JRE by
the JDK should solve your problem.

--
SeB
 
1 members found this post helpful.
Old 01-13-2012, 09:52 AM   #7
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106
Quote:
Originally Posted by phenixia2003 View Post
Hello,



Well, I tried on my Slackware-32 and I got the error with the JRE (ie 6u25),
but, with the (stock) JDK, the application works. So replacing the JRE by
the JDK should solve your problem.

--
SeB
I should have mentioned that I have the JDK installed as well. No idea why that would be required...

Eric
 
Old 01-13-2012, 10:37 AM   #8
BratPit
Member
 
Registered: Jan 2011
Posts: 250

Original Poster
Rep: Reputation: 100Reputation: 100
phenixia2003

Thanks for pointing me to jdk.
It works.
I mark thread as resolved, but open question is:

Why jre in Slackware do not work, and in rpm based distros and Debian works ?
 
Old 01-13-2012, 12:33 PM   #9
BratPit
Member
 
Registered: Jan 2011
Posts: 250

Original Poster
Rep: Reputation: 100Reputation: 100
Alien Bob,phenixia2003

I found it.

There is bug in JRE package for Slackware

The environment path is: /usr/lib/java

and should be: /usr/lib/java/jre

Best regards
 
Old 01-14-2012, 10:50 AM   #10
phenixia2003
Senior Member
 
Registered: May 2006
Location: France
Distribution: Slackware
Posts: 1,052

Rep: Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008
Hello,

Quote:
Originally Posted by BratPit View Post
I found it.

There is bug in JRE package for Slackware

The environment path is: /usr/lib/java

and should be: /usr/lib/java/jre
The JRE package has no folder /usr/lib/java/jre, this one comes from the JDK package.

But, I reproduced the problem under Slackware and Centos (6.2) using only the binaries from Oracle (versions 6u25 and 6u30).

First of all, looking at the Slackbuild used to repackage the JRE binaries from Oracle, we notice the steps below :
  1. Unpacks the binary from Oracle under /usr/lib, which create a folder name jre1.6.0_25.
  2. renames the folder jre1.6.0_25 to java
  3. creates a symlink jre1.6.0_25 -> java

It seems that the problem has something to do with the step #2, but I really don't know why and I don't understand that . This should be related to a bug from Oracle or inside the application pointed by the provided jnlp link.

So, how to reproduce the problem using only the binaries from Oracle ?
  1. Save the script /etc/profile.d/jre.sh to something like /etc/profile.d/jre.sh.bak
  2. Remove your java installation (ie removepkg jre or removepkg jdk)
  3. Restore the script /etc/profile.d/jre.sh
  4. Get the JRE binary from Oracle. This test can be done using the version "6u30" as you can't get previous versions unless you have an Oracle account (sic!).
  5. as root, install the JRE into /usr/lib :
    Code:
    $ cd /usr/lib
    $ sh /path/to/oracle/jre-6u30-linux-i586.bin (or jre-6u30-linux-x64.bin)

After this, the JRE must be installed into /usr/lib/jre1.6.0_30. Always in /usr/lib, create this link :

Code:
  $ ln -sf jre1.6.0_30 java
Now, as normal user, if you start the application from the given jnlp link, using your browser or using the command below, things should work without any problem.

Code:
$ javaws http://makler.bmbgz.pl/sidoma8inter/sidoma_kl.jnlp
Now, we're going to reproduce, with the binary from Oracle, the problem found with the JRE package from Slackware.

1. As root :

Code:
  $ cd /usr/lib
  $ rm java
  $ mv jre1.6.0_30 java
  $ ln -sf java jre1.6.0_30
Note:The 2 last lines are the steps #2 and #3 found into the Slackbuild used to repackage the binaries from Oracle.

2. As normal user, if you start the application from the provided jnlp link, an error will be thrown.

Now, if we cancel what was done in the two previous steps, the application will start normally again :
  1. As root :

    Code:
     $ cd /usr/lib
     $ rm jre1.6.0_30
     $ mv java jre1.6.0_30
     $ ln -sf jre1.6.0_30 java
  2. As normal user, the application started from the provided jnlp link should work.

As the JDK binaries are repackaged the same way, I really don't understand why the jnlp-application works with it and not with the JRE. Is anybody else could check this to ensure that I don't tell stupid things ?

Greetings.

--
SeB
 
Old 01-14-2012, 04:54 PM   #11
BratPit
Member
 
Registered: Jan 2011
Posts: 250

Original Poster
Rep: Reputation: 100Reputation: 100
phenixia2003

I was unprecisly.
The environment path to java home in /etc/profile.d/ is corect.
but JRE is only copied runtime part of JDK .
The runtime binaries in jdk are in path /usr/lib/java/jre but that runtimes in jre are in ../java.
I do not know why but if they are in the different folder outside path to ../jre you can't set properly environment to run javaws.
Simply system "sees" executable of java but Java itself not.
If you open ControlPanel of Java from menu and try set environment path to another folder but ../jre you can't set and write this environment path.
If they are right in place Java find and set it iself in its ControlPanel.

I just unpacked jre txz package copy content of ../java to ../jre then move ../jre to ..java and change install script to make right symlinks. Then make package and finito :-)

Last edited by BratPit; 01-14-2012 at 05:06 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Need help with jnlp and java web start on Puppy 5.25 jclark Linux - Newbie 2 01-12-2014 12:55 PM
how to run .JNLP file deyash Linux - Newbie 9 04-20-2012 07:38 AM
HOW TO GET .jnlp Java apps to run from Firefox in Gnome xiaodown Linux - Software 3 04-06-2011 12:24 AM
Java Web Start jnlp on Fedora matt_thumper Linux - Software 0 10-23-2010 08:12 PM
Firefox refuses to load Java jnlp files - plugin and java ok Melsync Linux - Software 1 06-25-2006 04:09 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 08:11 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration