LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   tell firefox where java is installed (https://www.linuxquestions.org/questions/linux-software-2/tell-firefox-where-java-is-installed-287827/)

titanium_geek 02-08-2005 04:09 PM

tell firefox where java is installed
 
Ok. I have firefox 1.0 and also java installed on my system. (It's java version "1.4.2_05") Please don't flippantly tell me to upgrade my java, as I don't want more problems.
oh yeah, it's the sdk, not the jre.

Firefox doesn't know where to get it, as it tells me that I'm missing plugins.

please help!

thanks

titanium_geek

hw-tph 02-08-2005 04:33 PM

cd to the plugins subdirectory of the Firefox lib directory. It's probably something like /usr/lib/MozillaFirefox/plugins. Then simply create a symbolic link to the .so file that is proper for your system type - most likely you use a gcc 3.x compiled system, so something like this should work: ln -s <WHERE_JAVA_IS_INSTALLED>/jre/plugin/i386/ns610-gcc32/libjavaplugin_oji.so .
That should create a link called libjavaplugin_oji.so in the plugins directory, pointing to the actual plugin file. Type about:plugins in the location bar in Firefox and look if it's picked up.


Håkan

fakie_flip 02-09-2005 12:44 AM

i am having the same problem getting the java plug in to work ive installed jdk got it to work and followed the directions from a site that didnt work i have some questions do you have to reboot your computer after u make the symbolic <WHERE_JAVA_IS_INSTALLED>/jre/plugin/i386/ns610-gcc32/libjavaplugin_oji.so do i substitute the folder or the path name where it says "WHERE_JAVA_IS_INSTALLED"?

Linux~Powered 02-09-2005 01:38 AM

Quote:

do you have to reboot your computer after u make the symbolic
The only time you really need to reboot Linux is if you want to run a different kernel.

To get Java to work, all you should need to do is...

cd /firefox/plugins
or if it's mozilla..
cd /mozilla/plugins

When you're in the "plugins" directory run..

Code:

ln -s /usr/lib/j2sdk1.4.2_04/jre/plugin/i386/ns610-gcc32/libjavaplugin_oji.so
if that's the correct location of "libjavaplugin_oji.so"
if you're not sure where "libjavaplugin_oji.so" is located, run..

Code:

whereis libjavaplugin_oji.so
and it'll give you the correct path to "libjavaplugin_oji.s"

re-run your web browser and you should have java enabled.

thermite_1033 02-09-2005 03:57 AM

use the command 'set' to see if java_home is set
if not, issue this:

set JAVA_HOME=/usr/lib/java

adjust where needed

if this doesnt work see if you have /usr/lib/java/bin in your path

set PATH=$PATH:/usr/lib/java/bin

titanium_geek 02-09-2005 03:04 PM

<WHERE_JAVA_IS_INSTALLED>/jre/plugin/i386/ns610-gcc32/libjavaplugin_oji.so do i substitute the folder or the path name where it says "WHERE_JAVA_IS_INSTALLED"?

yes.

fakie_flip 02-09-2005 10:48 PM

i got it to work i made the symbolic link and removed some bad links that were in there cool now i can view applets that i make with jdk


All times are GMT -5. The time now is 05:43 PM.