LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Does java work with firefox? (https://www.linuxquestions.org/questions/slackware-14/does-java-work-with-firefox-504333/)

M$ISBS 11-23-2006 07:39 PM

Does java work with firefox?
 
Ive got firefox 2, downloaded jre and checked the enable java box in preferences and java still will not work. Anyone know if there are any problems with java working in firefox? If not do you have an tips on getting it to work? I have already followed the instructions on the sun website over and over with no luck. :(

kotnik 11-23-2006 07:50 PM

Type following as address in Firefox: about: plugins (kill space after semicolon, bloody editor is turning into smiley).

M$ISBS 11-23-2006 07:59 PM

Quote:

Originally Posted by kotnik
Type following as address in Firefox: about: plugins (kill space after semicolon, bloody editor is turning into smiley).

ok, I see shockwave and nothing else. I suppose there should be a java plugin somewhere there?
I installed it just like the instructions said to and I did the symbolic link thing also.

Sepero 11-23-2006 09:41 PM

Double check, triple check, your symbolic links. After you get the symbolic links correct, FF must be restarted.

M$ISBS 11-23-2006 10:14 PM

Ive been at it for an hour and it still wont work. I have done the instructions on the sun website like 15 times and made sure I placed the correct version I downloaded in place of what the instructions say. I did the symbolic links, downloaded a different version of java and still wont work. Enabled it in FF, restarted it and nothing.

vtel57 11-23-2006 10:16 PM

Hmmmph! I'm having similar problems with Java in Fedora. :(

Sepero 11-24-2006 12:34 AM

OMG, this is so stupid. I can't believe there are distros out there that can't even friggin automate a Java install yet. sheeesh.

I wish people would just use Ubuntu or Mepis (or PCLOS/Xandros/FreeSpire) and freaking be done with it. (I DO have them in my signature for every newbie to see.)

M$ISBS, post the link to the website you are using to try and install this. We should be able to help you get this thing going.

bhert 11-24-2006 12:55 AM

For anyone that has any problems linking Java to your browser, here are the instructions to get it working:) Worked for me!!
Note: There are 2 different instructions depending on your browser and version.
I Got this off the Java web site



Mozilla 1.4 and later

1. Go to the plugins sub-directory under the Mozilla installation directory
cd <Mozilla installation directory>/plugins
2. In the current directory, create a symbolic link to the JRE ns7/libjavaplugin_oji.so file Type:
ln -s <JRE installation directory>/plugin/i386/ns7/libjavaplugin_oji.so

Example:
* If Mozilla is installed in this directory:
/usr/lib/mozilla-1.4/
* and if the JRE is installed at this directory:
/usr/java/jre1.5.0
* Then type at the terminal to go to the browser plug-in directory:
cd /usr/lib/mozilla-1.4/plugins
* Enter the following command to create a symbolic link to the Java Plug-in for the Mozilla browser.
ln -s /usr/java/jre1.5.0/plugin/i386/ns7
/libjavaplugin_oji.so .
3. Start Mozilla browser or restart it if it is already running. Note that if you have other Mozilla components (ie: Messenger, Composer, etc) running, you will need to restart them as well.
4. Go to Edit > Preferences. Under Advanced category > Select Enable Java



Mozilla 1.2, Netscape 6 and later

1. Go to the plugins sub-directory under the Netscape directory
cd <Mozilla1.2>/plugins
2. Create a symbolic link to the ns7-gcc29/libjavaplugin_oji.so file:
ln -s <JRE>/plugin/i386/ns7-gcc29/libjavaplugin_oji.so

Example:
* If Netscape is installed at this directory:
/usr/lib/Mozilla1.2/
* And if the JRE is installed at this directory:
/usr/java/jre1.5.0
* Then type at the terminal to go to the browser plug-in directory:
cd /usr/lib/Mozilla1.2/plugins
* Enter the following command to create a symbolic link to the Java Plug-in for the Mozilla browser.
ln -s /usr/java/jre1.5.0/plugin/i386/ns7-gcc29
/libjavaplugin_oji.so .
3. Start Mozilla browser or restart it if it is already running. Note that if you have other Mozilla components (ie: Messenger, Composer, etc) running, you will need to restart them as well.
4. Go to Edit > Preferences. Under Advanced category > Select Enable Java

XavierP 11-24-2006 05:07 AM

Slackware has Java preinstalled. Did you install it when you installed Firefox?

And I have moved this to the Slackware forum.

hitest 11-24-2006 07:45 AM

Java works just fine in Slackware out of the box if it is installed.

kotnik 11-24-2006 06:39 PM

This should get you started:

Code:

$ ls -l /usr/lib/mozilla/plugins/
libjavaplugin_oji.so -> /usr/lib/java/plugin/i386/ns7/libjavaplugin_oji.so*


M$ISBS 11-24-2006 08:11 PM

Thanks but those are the exact instructions I have been trying for an hour.

When I do this: libjavaplugin_oji.so -> /usr/lib/java/plugin/i386/ns7/libjavaplugin_oji.so*
as user I get "permission denied" and as root I get "command not found".

:confused:

dx0r515t 11-24-2006 08:32 PM

Quote:

Originally Posted by M$ISBS
Thanks but those are the exact instructions I have been trying for an hour.

When I do this: libjavaplugin_oji.so -> /usr/lib/java/plugin/i386/ns7/libjavaplugin_oji.so*
as user I get "permission denied" and as root I get "command not found".

:confused:

kotnik means that the output of the command ls -l /usr/lib/mozilla/plugins/ should include this line:
Code:

libjavaplugin_oji.so -> /usr/lib/java/plugin/i386/ns7/libjavaplugin_oji.so*
For example here's my output:
Code:

bash-3.00$ ls -l /usr/lib/mozilla/plugins
total 12
lrwxrwxrwx  1 root root  29 2006-04-21 19:04 gxineplugin.so -> /usr/lib/gxine/gxineplugin.so
lrwxrwxrwx  1 root root  50 2006-04-21 19:01 libjavaplugin_oji.so -> /usr/lib/java/plugin/i386/ns7/libjavaplugin_oji.so
-rwxr-xr-x  1 root root 1092 2005-05-01 18:47 libmozsvgdec.la
-rwxr-xr-x  1 root root 7816 2005-05-01 18:47 libmozsvgdec.so


Spinlock 11-24-2006 08:37 PM

Quote:

Originally Posted by Sepero
OMG, this is so stupid. I can't believe there are distros out there that can't even friggin automate a Java install yet. sheeesh.

I can't believe there are distros out there that install grub on the MBR and totally disregard the fact that there were pre-existing OSes on the hard drive(s).

Sepero 11-24-2006 09:29 PM

Quote:

Originally Posted by Spinlock
I can't believe there are distros out there that install grub on the MBR and totally disregard the fact that there were pre-existing OSes on the hard drive(s).

Lame. Most newbies won't have multiple installs of Linux on the same box anyway. People who are running multiple distros will generally have the skills to adjust their own MBR accordingly.
True, it is a problem, and I'm certain it will be dealt with. I could flame on the deformities your_distro all day if you dared to go down that path. I don't think we really want to do that though.

M$ISBS, dx0r515t is correct, follow his advice.


All times are GMT -5. The time now is 08:24 PM.