LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Ubuntu (https://www.linuxquestions.org/questions/ubuntu-63/)
-   -   JRE on firefox 2 problem (https://www.linuxquestions.org/questions/ubuntu-63/jre-on-firefox-2-problem-516945/)

vcatalano 01-06-2007 02:00 PM

JRE on firefox 2 problem
 
I have the latest version of JRE on my Ubuntu Edgy box, however, every time I try to run a java applet, firefox2 says that I dont have the correct plugin installed (Java Runtime Environment). Even when I try to load applets on other websites I get the same error. I am sure I have all the correct java programs and utilities I but I cant find out how to get firefox2 to recognize the JRE that is already installed.

Brian1 01-06-2007 02:35 PM

Have you softlinked the java plugin to the firefox plugin directory. If not then you need to do that.

Brian

vcatalano 01-06-2007 02:46 PM

Quote:

Originally Posted by Brian1
Have you softlinked the java plugin to the firefox plugin directory. If not then you need to do that.

Brian

How can I do this?

Brian1 01-06-2007 04:21 PM

I cannot give a specific command since not knowing which java was installed and where it was installed. But check out this post on the subject. It is outdated as far as version but should point you to the right location with a little searching on your drive for the plugin file. Then you need to know where the firefox plugin folder is. Again all depends on how it was installed and where. http://www.linuxquestions.org/questi...66#post1402966

Brian

vcatalano 01-07-2007 10:29 PM

I have tried linking every single javaplugin_oji.so file to my /usr/lib/firefox/plugins folder but ever time it DOES NOT RECOGNIZED THE JAVA PLUGIN

I have linked the javaplugin_oji.so file from:
/usr/lib/j2re1.5-sun/plugin/i386/n7-gcc29/
/usr/lib/j2re1.5-sun/plugin/i386/ns7
/usr/lib/jvm/java-1.5.0-sun-1.5.0.08/jre/plugin/i386/ns7-gcc29/
/usr/lib/jvm/java-1.5.0-sun-1.5.0.08/jre/plugin/i386/ns7/

...but none of them seem to work. Does anyone have any suggestions?

Brian1 01-08-2007 04:12 PM

Which one is it you need? The one in ns7 is the one you want.

Also if use the ln command to set did you delete the link first or use the -f option to force the over write. ln will not over write an existing link without the -f option. It will not error or complain even if you tried without the -f option. ln -sf <source file> <destination file soft link>

Post command you have been using point from the orginal file to the point where the softlink is placed.

Brian

vcatalano 01-09-2007 03:33 AM

Solution
 
I discovered that I could only get the plugin to work by installing it into the single user directory. This was done with the following command line.

sudo ln -s /usr/lib/j2re1.5-sun/plugin/i386/ns7/libjavaplugin_oji.so /home/[username]/.mozilla/plugins/libjavaplugin_oji.so

Brian1 01-09-2007 03:08 PM

Glad to see you have it going. Normally plugins in /usr/lib/mozilla/plugins works on mozilla and firefox. But some of that depends on they are compiled.

Brian

FromFPan2Fire 01-21-2007 05:52 AM

Thanks - Got Java working for me now, too!
 
Thanks to this post! After too many hours I finally got Java running on my Ubuntu 6.06 / Firefox 2.0.0.1 system. I was specifically trying to load 1.4; and the final step, provided by you'll was:

sudo ln -s /usr/lib/j2se/1.4/jre/plugin/i386/mozilla/libjavaplugin_oji.so /home/<user>/.mozilla/plugins/libjavaplugin_oji.so

But first I had to manually create the folder plugins under .mozilla

THANKS


All times are GMT -5. The time now is 07:17 PM.