LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Java in Mozilla (https://www.linuxquestions.org/questions/linux-software-2/java-in-mozilla-106135/)

ch4s3r 10-19-2003 10:50 PM

Java in Mozilla
 
Hey everyone.
I've searched this topic and found some answers but i still need some help...
i'm to the point where i put a link to the mozilla plugins folder to the javaplugin.
i open mozilla and java still doesn't work in it. I'm running RH9.0 if it matters. this is where i'm at--------
/usr/lib/mozilla/plugins/libjavaplugin_oji.so

kind of urgent as i need it running for college. thanks for your time.

65_289 10-19-2003 11:00 PM

How did you install java? I installed the J2RE, and it automatically put the plugins in place for me.

megaspaz 10-19-2003 11:05 PM

which version of mozilla are you using? did you upgrade using the downloaded binary from mozilla.org? if you installed that, then you're plugins folder will be /usr/local/mozilla/plugins. how are you invoking mozilla? by typing in mozilla at the command line or by /usr/local/mozilla/mozilla? if you're using a desktop icon link, what's the command that it's using? and which libjavaplugin.so are you using? the libjavaplugin will be in your java install directory inside a subdirectory called ns610-gcc3.2 (if using suns j2sdk1.4.2_01). basically what version of java did you install and what version and how many versions of mozilla do you have and how are you invoking mozilla?

Crashed_Again 10-19-2003 11:11 PM

rm /usr/lib/mozilla/plugins/libjava*
ln -sf /path/to/java/plugin/gcc32/libjavaplugin_oji.so /usr/lib/mozilla/plugins

ch4s3r 10-19-2003 11:13 PM

i'm using mozilla 1.2.1 and i open it by typing "mozilla" in the terminal.
i downloaded j2re-1_4_2_01-linux-i586-rpm.bin

i went through some user lisence agreement thing in the terminal and agreed to it. i don't know what to do next, once in mozilla i look in the 'help-about plugins' and java isn't there.

megaspaz 10-19-2003 11:16 PM

Quote:

Originally posted by ch4s3r
i'm using mozilla 1.2.1 and i open it by typing "mozilla" in the terminal.
i downloaded j2re-1_4_2_01-linux-i586-rpm.bin

i went through some user lisence agreement thing in the terminal and agreed to it. i don't know what to do next, once in mozilla i look in the 'help-about plugins' and java isn't there.

then i think the plugins folder you want will be:

/usr/lib/mozilla-1.2.1/plugins

create a link like Crashed_Again showed you, but for the last bit change the directory to the one i just posted.

ch4s3r 10-19-2003 11:18 PM

ok libjavaplugin_oji.so is in the /usr/mozilla-1.2.1/plugins folder, what now?

megaspaz 10-19-2003 11:20 PM

Quote:

Originally posted by ch4s3r
ok libjavaplugin_oji.so is in the /usr/mozilla-1.2.1/plugins folder, what now?
do not copy or move the libjavaplugin from you java installation directory to the mozilla plugin folder. create a link to it. open up mozilla and do
Code:

about: plugins
it should be listed.

edit: frigging smiley substitution. no spaces in front or behind ":" in the code part.

ch4s3r 10-19-2003 11:24 PM

it's not in the list

ch4s3r 10-19-2003 11:29 PM

in the plugins folder the icon for the libjavaplugin_oji.so has a little arrow like the windows shortcuts... does this mean anything? does that mean i linked it wrong?

megaspaz 10-19-2003 11:30 PM

could be. depends on how you linked it. what command did you use to link the libjavaplugin.so file?

also, did you by chance try to restart mozilla? if not, try restarting moz.

ch4s3r 10-19-2003 11:32 PM

ln -s /usr/java/j2re1.4.2_01/plugin/i386/ns610-gcc32/libjavaplugin_oji.so


once i cd'd into the plugins folder

megaspaz 10-19-2003 11:37 PM

Quote:

Originally posted by ch4s3r
ln -s /usr/java/j2re1.4.2_01/plugin/i386/ns610-gcc32/libjavaplugin_oji.so


once i cd'd into the plugins folder

i tried that for my home directory and i get a red flashy thing, so it maybe not the right way to do it. i get an icon that says link to unknown. try (assuming you're still in the plugins folder):

1. rm libjava*.so
2. ln -s /usr/java/j2re1.4.2_01/plugin/i386/ns610-gcc32/libjavaplugin_oji.so libjavaplugin_oji.so

edit: apparently that does work #2. i had the wrong directory. but you still need to make sure the java plugin directory is valid. go to your file manager and navigate to /usr/java and make sure that this directory is indeed right:

/usr/java/j2re1.4.2_01/plugin/i386/ns610-gcc32/

i don't know because i'm using the j2sdk.

ch4s3r 10-19-2003 11:46 PM

ok i tried the new ln command you gave me and now there's this in the plugins folder:
libjavaplugin_oji.so and libnullplugin.so but java still doesn't show up in the about : plugins list, btw thanks for helping me for so long

megaspaz 10-19-2003 11:48 PM

there's something just not right with this. after making the changes, you are closing mozilla and restarting it right?

what's the file size of your libjavaplugin_oji.so shortcut? also, in my above post, i said i wasn't sure about that file path to the /usr/java/..../libjavaplugin_oji.so
you have to make sure that's valid.


All times are GMT -5. The time now is 05:56 AM.