X
Tap here to go to the mobile version of the site.
We’re undergoing maintenance to improve your experience. You won’t be able to post or edit on the site but you’ll be able to read our pages. Thank you for your patience. (Estimated downtime: 10:45 AM until 11:30 AM Eastern time.)

Support Forum

java 32 bit runtime under 64 bit firefox ?

Posted

I want to use 32 bit java runtime on my 64 bit Ubuntu 12.04 system. jre installation includes configuration of the java plugin for the firefox. is there any compatibility issues I should know about?

I want to use 32 bit java runtime on my 64 bit Ubuntu 12.04 system. jre installation includes configuration of the java plugin for the firefox. is there any compatibility issues I should know about?

Additional System Details

Installed Plug-ins

  • Shockwave Flash 11.2 r202
  • This plug-in detects the presence of iTunes when opening iTunes Store URLs in a web page with Firefox.
  • The Totem 3.0.1 plugin handles video and audio streams.
  • DivX Web Player version 1.4.0.233

Application

  • User Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:15.0) Gecko/20100101 Firefox/15.0

More Information

java 32 bit mozilla plugin under 64 bit firefox?

cor-el
  • Top 10 Contributor
  • Moderator
16234 solutions 146545 answers

Just make sure that Firefox can find the 32 bit Java plugin file (libnpjp2.so) by placing a symlink in a location where Firefox scans for plugins.

Just make sure that Firefox can find the 32 bit Java plugin file (libnpjp2.so) by placing a symlink in a location where Firefox scans for plugins. * http://kb.mozillazine.org/Determining_plugin_directory_on_Linux * https://developer.mozilla.org/en/Gecko_Plugin_API_Reference/Plug-in_Basics#How_Gecko_finds_plug-ins

Question owner

Firefox doesn't see the java plugin! This is what I did:

0. //ubuntu amd64: install g++-multilib

1. # cp jdk-6u35-linux-i586.bin /opt/java/

2. # cd /opt/java/

3. # ./jdk-6u35-linux-i586.bin

4. # update-alternatives --install /usr/bin/java java /opt/java/jdk1.6.0_35/bin/java 100

5. # update-alternatives --install /usr/bin/javaws javaws /opt/java/jdk1.6.0_35/bin/javaws 100

6. # update-alternatives --install /usr/lib/mozilla/plugins/libjavaplugin.so libjavaplugin.so /opt/java/jdk1.6.0_35/jre/lib/i386/libnpjp2.so 100

7. # update-alternatives --config java

8. # java -version

9. $ JAVA_HOME=/opt/java/jdk1.6.0_35/

10. $ export JAVA_HOME

11. $ PATH=$PATH:/opt/java/jdk1.6.0_35/bin

12. $ export PATH

13. $ javac

In addition to the fact, that Firefox actually doesn't see the java, there's also a problem with JAVA_HOME and PATH variables - they only save their values for the current session.

Firefox doesn't see the java plugin! This is what I did: 0. //ubuntu amd64: install g++-multilib 1. # cp jdk-6u35-linux-i586.bin /opt/java/ 2. # cd /opt/java/ 3. # ./jdk-6u35-linux-i586.bin 4. # update-alternatives --install /usr/bin/java java /opt/java/jdk1.6.0_35/bin/java 100 5. # update-alternatives --install /usr/bin/javaws javaws /opt/java/jdk1.6.0_35/bin/javaws 100 6. # update-alternatives --install /usr/lib/mozilla/plugins/libjavaplugin.so libjavaplugin.so /opt/java/jdk1.6.0_35/jre/lib/i386/libnpjp2.so 100 7. # update-alternatives --config java 8. # java -version 9. $ JAVA_HOME=/opt/java/jdk1.6.0_35/ 10. $ export JAVA_HOME 11. $ PATH=$PATH:/opt/java/jdk1.6.0_35/bin 12. $ export PATH 13. $ javac In addition to the fact, that Firefox actually doesn't see the java, there's also a problem with JAVA_HOME and PATH variables - they only save their values for the current session.

Modified by AnthraxBass

Question owner

Up.

Anyone?

Up. Anyone?

Question owner

May be this will do:

6. # update-alternatives --install /usr/ lib64 /mozilla/plugins/libjavaplugin.so libjavaplugin.so /opt/java/jdk1.6.0_35/jre/lib/i386/libnpjp2.so 100

??

May be this will do: 6. # update-alternatives --install /usr/ lib64 /mozilla/plugins/libjavaplugin.so libjavaplugin.so /opt/java/jdk1.6.0_35/jre/lib/i386/libnpjp2.so 100 ??
cor-el
  • Top 10 Contributor
  • Moderator
16234 solutions 146545 answers

Which version of Firefox do you have installed?
A 32 bit or a 64 bit version?

If you run a 64 bit version of Firefox then Firefox needs a 64 bit Java plugin (lib64) and a 32 bit Firefox needs a 32 bit Java plugin (lib32), otherwise it won't work.

Which version of Firefox do you have installed?<br /> A 32 bit or a 64 bit version? If you run a 64 bit version of Firefox then Firefox needs a 64 bit Java plugin (lib64) and a 32 bit Firefox needs a 32 bit Java plugin (lib32), otherwise it won't work.

Question owner

This is topic subject: [QUOTE] java 32 bit runtime under 64 bit firefox ? [\QUOTE]

You are speaking of pretty obvious things.

Let me remind your first answer: [QUOTE] Just make sure that Firefox can find the 32 bit Java plugin file (libnpjp2.so) by placing a symlink in a location where Firefox scans for plugins. [\QUOTE]

Why do you change your answer like this?

This is topic subject: [QUOTE] java 32 bit runtime under 64 bit firefox ? [\QUOTE] You are speaking of pretty obvious things. Let me remind your first answer: [QUOTE] Just make sure that Firefox can find the 32 bit Java plugin file (libnpjp2.so) by placing a symlink in a location where Firefox scans for plugins. [\QUOTE] Why do you change your answer like this?
cor-el
  • Top 10 Contributor
  • Moderator
16234 solutions 146545 answers

I do not know which Firefox version you currently have installed.
I assumed the normal 32 bit version, but I might be wrong about that.
So please confirm which version you have.

I do not know which Firefox version you currently have installed.<br /> I assumed the normal 32 bit version, but I might be wrong about that.<br /> So please confirm which version you have.

Question owner

Build identifier: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:15.0) Gecko/20100101 Firefox/15.0

What's the point of this topic? - how to keep compatibiliy with 32-bit java applets under 64-bit firefox ?? This is the point.

You say this is impossible? :-\

Build identifier: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:15.0) Gecko/20100101 Firefox/15.0 What's the point of this topic? - how to keep compatibiliy with 32-bit java applets under 64-bit firefox ?? This is the point. You say this is impossible? :-\