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/)

masonm 11-24-2006 09:54 PM

Oh please. Let's not start that lame distro fanboy garbage. It's really old.

duryodhan 11-24-2006 10:51 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.

But Slackware does come preinstalled with JRE. Sheesh! :P

hitest 11-24-2006 11:01 PM

Quote:

Originally Posted by duryodhan
But Slackware does come preinstalled with JRE. Sheesh! :P

I know:-) I mentioned this a few posts back:-)
If you install Java it is all there.

M$ISBS 11-25-2006 12:41 AM

Ive tried all the suggestions and a few of my own ideas with no luck. Would it matter if I switched to another browser like Opera?

duryodhan 11-25-2006 01:15 AM

Go to your Slackware Install media and install JDK packages. It would automatically make sure JRE is installed. Or remove JRE with pkgtool and just reinstall JRE again.(But this doesn't seem to work for you so thats why I said the earlier method).

M$ISBS 11-25-2006 01:40 AM

Is there a way to remove all of java, including the JDK I installed previously and start from scratch?

duryodhan 11-25-2006 03:06 AM

yeah I think pkgtool should be able to do it if you did checkinstall.

masonm 11-25-2006 07:18 AM

As duryodhan suggested, use pkgtool to remove the JRE package, then install it again. Also, before you do, in the /usr/lib directory, check to see what the symlink "firefox" is pointing to. Make sure it's pointing to Firefox 2 and not the older one.

tobyl 11-25-2006 07:55 AM

Quote:

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".
You got 'command not found' if you entered the above because there is no command there.
You are creating a soft link or 'symlink' for which you need to use ln -s

If you have the Slack firefox2 package,
cd /usr/lib/firefox-2.0/plugins

or alternatively

cd /yourhome/.mozilla/plugins

then issue the command

ln -s /usr/lib/<JREversion>/plugin/i386/ns7/libjavaplugin_oji.so libjavaplugin_oji.so

where JREversion is your JRE version (!) eg jre1.5.0_09

(or simply ln -s /usr/lib/java/plugin/i386/ns7/libjavaplugin_oji.so libjavaplugin_oji.so
if you have a symlink already in /usr/lib pointing to your java version, eg "java -> jre1.5.0_09/")

the ln -s command is easy to understand,
ln -s /PATH/TO/TARGET LINKNAME

so NAME is what the link is called, this obviously needs to be what firefox is expecting, ie libjavaplugin_oji.so
Also you need to be in the directory in which you want the link to reside, unless you specify that in your command as well - see 'man ln'

hope that helps

tobyl

M$ISBS 11-26-2006 06:46 PM

Ive done that 20 times several different ways. Nothing seems to work and I dont know what else to do. I did it once more and the console said

" aplugin_oji.so
ln: creating symbolic link `libjavaplugin_oji.so' to `/usr/lib/jre1.5.0_07/plugin/i386/ns7/libjavaplugin_oji.so': File exists
"

The JDK I installed was 1.6 and then I installed the 1.5 JRE. could this be part of the problem?
I dont know what else to do. :(

M$ISBS 11-26-2006 07:54 PM

Am I supposed to have something related to Java in /usr/java ? It is empty.
According to these, http://www.mozilla.org/support/firefox/faq#q2.2 instructions soemething should be there.

Spinlock 11-26-2006 08:06 PM

No, but there should be something in /usr/lib/java.

What I did, exactly as typed, easily copied and pasted to a command line using SHIFT+INSERT:
Code:

ln -s /usr/lib/java/jre/plugin/i386/ns7/libjavaplugin_oji.so /usr/lib/firefox/plugins/
This is using the JRE from the Slackware install DVD.

kotnik 11-26-2006 08:07 PM

No, there shouldn't be anything in /usr/java by Slackware's default. You can install Java there, if you really want...

Anyway... Just delete that symlink you have and install jre package from your Slackware installation CDs...

M$ISBS 11-26-2006 08:49 PM

Quote:

Originally Posted by Spinlock
No, but there should be something in /usr/lib/java.

What I did, exactly as typed, easily copied and pasted to a command line using SHIFT+INSERT:
Code:

ln -s /usr/lib/java/jre/plugin/i386/ns7/libjavaplugin_oji.so /usr/lib/firefox/plugins/
This is using the JRE from the Slackware install DVD.

I just checked and I dont have a /usr/lib/java folder. Shouldnt that have been created when I installed the JDK or JRE? Should I go ahead and make the folder and copy the JRE folder to it?
I dont have any 10.2 CDs to install from.

masonm 11-26-2006 09:56 PM

so download the package from a slack mirror and install it


All times are GMT -5. The time now is 06:38 AM.