Hey folks,
I'm trying to use a 5.3 box to run some JNLP apps, but all I get is a view of XML.
I try doing some googling and don't come up with much other than this one thread that says I may need both 32 and 64 bit Java to run JNLP. But it is not clear to me how to do that.
thanks, -Alan
Oh sorry, Firefox on 5.3
Anyone? Anyone? Buehler?
Fortunately in one instance I am having the problem on an Oracle/Sun system that I have under support, and so I logged a call with them. They told me to ensure I am running JRE 1.5 or better, and of course I had not been. So I installed JR 1.7 (latest) from their RPMs, and then followed the instructions here : http://www.oracle.com/technetwork/java/javase/manual-plugin-install-linux-13...
To create a link in my .mozilla/plugins directory :
[amckay@solexa-db ~]$ ls -al !$ ls -al .mozilla/plugins/ total 7 drwxr-xr-x+ 2 amckay amckay 3 Dec 7 13:14 . drwxr-xr-x+ 5 amckay amckay 5 Nov 16 09:25 .. lrwxrwxrwx 1 amckay amckay 43 Dec 7 13:14 libnpjp2.so -> /usr/java/jre1.7.0_01/lib/amd64/libnpjp2.so [amckay@solexa-db ~]$ pwd /home/amckay [amckay@solexa-db ~]$
And then I restart Firefox and check the installed plugins that it thinks it has, and sure enough it has that one running. But still I go to a JNLP app and get only XML, no app.
Anyone?
On Thu, Dec 1, 2011 at 2:25 PM, Alan McKay alan.mckay@gmail.com wrote:
Hey folks,
I'm trying to use a 5.3 box to run some JNLP apps, but all I get is a view of XML.
I try doing some googling and don't come up with much other than this one thread that says I may need both 32 and 64 bit Java to run JNLP. But it is not clear to me how to do that.
thanks, -Alan
-- “Don't eat anything you've ever seen advertised on TV” - Michael Pollan, author of "In Defense of Food"
Vreme: 12/07/2011 07:29 PM, Alan McKay piše:
Anyone? Anyone? Buehler?
Fortunately in one instance I am having the problem on an Oracle/Sun system that I have under support, and so I logged a call with them. They told me to ensure I am running JRE 1.5 or better, and of course I had not been. So I installed JR 1.7 (latest) from their RPMs, and then followed the instructions here : http://www.oracle.com/technetwork/java/javase/manual-plugin-install-linux-13...
DO NOT use Java 1.7. They are released with known bug that can wreck your database or something similar nasty.
Solution should be:
2. In your Firefox browser, go to Edit-> preferences-> Applications, and in Content Type select the option "use other" for jnlp files 3. In the dialog box, select the "javaws" file location (for me, it was located in "/usr/java/jre1.6.0_16/bin")
Bellow is additional info and my notes on how to install Java for Firefox.
Here are my notes on installing Java JRE on CentOS:
Java JRE on CentOS 6 i 5
1. yum install jre
2. ## java ##: alternatives --install /usr/bin/java java /usr/java/jre1.6.0_27/bin/java 20000 ## javaws (32-bit only) ##: alternatives --install /usr/bin/javaws javaws /usr/java/jre1.6.0_27/bin/javaws 20000 ## Java Browser (Mozilla) Plugin 32-bit ##: alternatives --install /usr/lib/mozilla/plugins/libjavaplugin.so libjavaplugin.so /usr/java/jre1.6.0_27/lib/i386/libnpjp2.so 20000 ## Java Browser (Mozilla) Plugin 64-bit ##: alternatives --install /usr/lib64/mozilla/plugins/libjavaplugin.so libjavaplugin.so.x86_64 /usr/java/jre1.6.0_27/lib/amd64/libnpjp2.so 20000
commands 64-bit: alternatives --install /usr/bin/java java /usr/java/jre1.6.0_27/bin/java 20000 alternatives --install /usr/lib64/mozilla/plugins/libjavaplugin.so libjavaplugin.so.x86_64 /usr/java/jre1.6.0_27/lib/amd64/libnpjp2.so 20000
Do not use it blindly, select what you are installing (JRE/javaws, 32/64 bit) and fix the commands accordingly.
Older notes but with JDK:
Java na CentOS-u i Firefox
1. yum install java
2. Now you need to add the Java you have installed to the list of alternatives for the java executable: /usr/sbin/alternatives --install /usr/bin/java java /usr/java/latest/bin/java 2
Note: There is two - (hypen) before install.
Note: Tinker with /usr/java/latest/bin/java if you do not have Java installed at this location. In other words change it to point to the location of your installed Java executable from Sun.
3. Now configure alternatives to select the latest Java executable under /usr/java: /usr/sbin/alternatives --config java
Check the version of Java to ensure that it is from Sun: java -version
For example, this is the output I get:
java version "1.6.0_16″ Java(TM) SE Runtime Environment (build 1.6.0_16-b01) Java HotSpot(TM) 64-Bit Server VM (build 14.2-b01, mixed mode)
Go to /usr/lib64/mozilla/plugins: cd /usr/lib64/mozilla/plugins or cd /usr/lib/mozilla/plugins
4. Create a symbolic link to libnpjp2.so (Firefox plugin for Java): ln -s /usr/java/latest/lib/amd64/libnpjp2.so or ln -s /usr/java/latest/lib/i386/libnpjp2.so
Note: The above is applicable for JDK installation. For JRE it is likely to be: ln -s /usr/java/latest/lib/amd64/libnpjp2.so or ln -s /usr/java/latest/lib/i386/libnpjp2.so 5. Restart Firefox and type the following in URL field and press Enter: about:plugins
You should now see a section titled Java(TM) Plug-in 1.6.x
You are done installing Java Plugin / Applet support in Firefox on CentOS 5.
ln -s /usr/java/latest/plugin/i386/ns7/libjavaplugin_oji.so u /usr/lib/mozilla/plugins
And then I restart Firefox and check the installed plugins that it thinks it has, and sure enough it has that one running. But still I go to a JNLP app and get only XML, no app.
Anyone?
I'm trying to use a 5.3 box to run some JNLP apps, but all I get is a view of XML.
I try doing some googling and don't come up with much other than this one thread that says I may need both 32 and 64 bit Java to run JNLP. But it is not clear to me how to do that.
The howto I found:
1. Install an official Java for Linux (from the SUN site, ) 2. In your Firefox browser, go to Edit-> preferences-> Applications, and in Content Type select the option "use other" for jnlp files 3. In the dialog box, select the "javaws" file location (for me, it was located in "/usr/java/jre1.6.0_16/bin")
4. Wery important to select the "javaws" from official SUN package, and not from the package with Linux java distribution - it's not works!
First try WITHOUT No 4. and avoid No 1., instead install "java-1.6.0-openjdk" and in java
Here is another howto on fixing JNLP in Firefox:
http://stuffivelearned.org/doku.php?id=apps:firefox:jnlpfix
That did the trick - thanks so much!
Um, um, er... I didn't have java on my machine (CentOS 6, 64-bit). I went to install openjdk; not sure of the correct package name, I did a yum list *jdk*... and among the things I saw was java-1.6.0-openjdk-plugin. I did a yum install, and it installed openjdk, and a few other packages.
I think looked at my *running* version of firefox, and the add-ons showed icedtea was installed and enabled. I went to a java test site... and it worked. No ifs, ands, or buts, and ff didn't crash.
Thanks to the icedtea folks!
mark