LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   java plugin for firefox (https://www.linuxquestions.org/questions/linux-software-2/java-plugin-for-firefox-292524/)

velska 02-20-2005 03:30 AM

java plugin for firefox
 
Well, whaddaya know, I have a problem.

I downloaded Java 1_5_0 JDK package and I can compile and run Java programs but I cant seem to get Java working with Firefox. So my big question is:

How do I turn the Java plugin on for Firefox. (FYI, running FC3 now, with Firefox 1.0).

Thanks

vegetassj2 02-20-2005 03:42 AM

hi,

I had kinda same problem.
To solve it delete your Java 1.5.0JDK and replace it for a j2sdk1.4.2_07 (that's mine ^^ :p)

$ ln -s /usr/java/j2sdk1.4.2_07/jre/plugin/i386/ns610-gcc32/libjavaplugin_oji.so /usr/lib/firefox-<yourversion>/plugins

If you have any browsers running close them and restart after the ln -s

you succesfully installed Java on Firefox ;)

CyA

reddazz 02-20-2005 03:54 AM

jdk 1.5 works fine for me using Firefox 1.0 on FC3. Just follow the instructions above but alter the paths to suite the version of jdk you have installed.

velska 02-20-2005 04:39 AM

SUCCESS
 
Thanx a lot, guys! Now Java works with my Firefox browser. I was stumped there for a while... I have just started to get into Java, and this stuff is new to me - as is Linux stuff, too, although I've been running a Linux workstation for a while here.

schmee 06-07-2005 09:13 PM

jdk version 1.5.0_01 doesn't have the plugin mentioned above.
the following works with jdk1.5.0_01 and firefox 1.0.4

root@localhost# ln -s /usr/java/jdk1.5.0_01/jre/plugin/i386/ns7/libjavaplugin_oji.so \
/usr/lib/firefox-1.0.4/plugins

use of the other plugin in the jdk (ns7-gcc29/libjavaplugin_oji.so) caused firefox to fail to start.

kyuso 06-13-2005 09:56 PM

Quote:

Originally posted by reddazz
jdk 1.5 works fine for me using Firefox 1.0 on FC3. Just follow the instructions above but alter the paths to suite the version of jdk you have installed.
Which versions do you use?

I have firefox-1.0.4-1.3.1 from Fedora update, and installed jdk 1.5.0_03-b07 from java.sun.com into /usr/local. I symlinked from plugins/ns7/lib... to /usr/lib/mozilla/plugins, and url:about:plugins show that it loads and activates java 1.5.0. But when I try to run any java applet, the following file is created: plugin_stack.trace which contains

java.lang.NoClassDefFoundError
at sun.plugin.AppletViewer.initEnvironment(AppletViewer.java:237)
at sun.plugin.navig.motif.Plugin.doit(Plugin.java:141)
at sun.plugin.navig.motif.Plugin.start(Plugin.java:104)

and no applet window appears on the screen.

I set JAVA_HOME to /usr/local/jdk1.5, NPX_PLUGIN_PATH to /usr/lib/mozilla/plugins:/usr/local/jdk1.5/jre/plugin, but none of them helps solve this problem.

I wonder what java object Plugin couldn't find.

LinuxGeek 06-14-2005 03:08 AM

I'd suggest you stick to the 1.5 jdk since I remember reading that there are problems with the 1.4x java plugin with firefox and the resolution was installing 1.5 jdk with it's plugin.

Kahless 06-14-2005 03:31 AM

1.5 works great for me... i had trouble getting it up, but the key was creating that syslink mentioned in the java readme. Make sure your linking from/to the right places, and it should work fine.

glsen_az 04-15-2006 07:00 PM

My JRE Install Instructions for SuSE 10
 
Getting Java to Completely Work in SuSE 10

I had Java 1.5.0_06 installed but the installation did not have a plugin directory under /usr/lib/jre1.5.0_06/plugin/i386/ns7 as indicated on numerous posts I have read. OK, I'm game -- just don't shoot me! Here's what I did to get Java Runtime Environment to work:
  • Used YaST to un-install java from the system.
  • Removed previous installations dating back to the jre1.4.x series by being root and doing rm -i /usr/lib/jre1.4.x where "x" is each earlier version. Also did rm -i on the last traces of the jre1.5 series. Java things are seriously broken now!
  • Followed the instructions from Sun's Java.com installation site I downloaded the .bin installer and ran as root - no problems.
  • Of course, YaST did not show a JRE installation because nothing was done via YaST with an RPM.
  • Also note that there was no "jvm" folder under /usr/lib nor was there anything under the /etc/alternatives directory.
  • I COPIED (not linked via the "ln" command) the libjavaplugin_oji.so to the /usr/lib/firefox/plugins directory.
  • The Java Installation Test page still didn't like the setup.
  • I had previously downloaded the following RPMs:
    • java-1_5_0-sun-plugin-1.5.0_06-1.1.i586
    • java-1_5_0-sun-1.5.0_06-1.1.i586
    • java-1_5_0-sun-jdbc-1.5.0_06-1.1.i586
    • java-1_5_0-sun-alsa-1.5.0_06-1.1.i586
  • I double-clicked each one in Konqueror, provided the root password, and installed.
  • Opened Firefox (1.5.0.1) and went to the Java installation test site. The test came back positive and the happy dancing Java thing started bopping around.
  • I then ran FreeMind (java-based mind mapping application) and the JBlogEdit (java-based offline blog editor), and JEdit (yes, java-based text editor.)
  • I opened the Java Control Panel ( /usr/lib/jre1.5.0_06/bin/ControlPanel ) and verified that the java options were enabled.

I hope this helps someone.


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