LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   trouble with java using forefox 1.0 broken sym-link (https://www.linuxquestions.org/questions/slackware-14/trouble-with-java-using-forefox-1-0-broken-sym-link-262965/)

Kelean 12-05-2004 04:55 PM

trouble with java using forefox 1.0 broken sym-link
 
I am new to slackware but not new to linux I was using fedora C1 but was frustrated with it. After reading many posts I have chosen slack 10.0 for everyday use and debian 3.0 r3 to play with. My problem is that I keep getting a broken sym-link from my plugins folder in firefox to java folder so I can play pogo games. Im sure i have missed something. I can create the link but it does not work. I look at the link properties and it says its broken. Thank you, I really like this formum. Kelean

gbonvehi 12-05-2004 05:10 PM

Type: ls -l ~/.mozilla/plugins
And paste the output.
You should read something like: libjavaplugin_oji.so -> /usr/lib/java/jre/plugin/i386/ns7/libjavaplugin_oji.so
Check if the file being pointed to in /usr exists, if it doesn't exist there try to see if you can locate libjavaplugn_oji.so. If you still can't find it, install j2sdk package.

mrcheeks 12-05-2004 05:25 PM

if the link is broken, can you update it?....

Kelean 12-05-2004 05:26 PM

ok I did command and here is what was returned

total 21
lrwxrwxrwx 1 root root 72 2004-12-04 21:19 libjavaplugin_oji_so. -> /usr/lib/j2sdk1.4.2_04/jre/plugin/i386/ns610-gcc32/libjavaplugin_oji_so.
-rwxr-xr-x 1 kevin users 18840 2004-11-07 13:27 libnullplugin.so
bash-2.05b$ ln -s /usr/lib/j2sdk1.4.2_04/jre/plugin/i386/ns610-gcc32/libjavaplugin_oji_so.

JunctaJuvant 12-05-2004 06:07 PM

Have you tried specifying the full paths when creating the symlink? Like so:
Code:

ln -sf /path/to/jre/plugin/libjavaplugin_oji_so /path/to/mozilla/plugins/libjavaplugin_oji_so
The -f flag makes that the old symlink is removed.
Just something you could try.

JJ

rotvogel 12-05-2004 07:39 PM

The java version you are using is afaik not secure, there are security issues with it. Upgrade to 1.4.2_06 or the 1.5.0 version.

The symlink is not good, instead of /libjavaplugin_oji_so try libjavaplugin_oji.so because that's how the file is named.
Code:

cd to your plugindir
 ln -s /usr/lib/java/jre/plugin/i386/ns610-gcc32/libjavaplugin_oji.so libjavaplugin_oji.so (if you take my next advice)

Another advice is to make a symlink in your /usr/lib directory called java, pointing to the actual dir of the java version you use. That way you will have only to update your plugin link even when you upgrade your java version, you will have to update the java symlink. But that is only one, browser plugins could be several. The path for the java_1.5.0 version was changed so if you chose to install that you will have to change the symlink once. This could be handy for path purposes as well .
Code:

ln -s  /usr/lib/j2sdk1.4.2_06 /usr/lib/java (if your installing the package below)
The almost official update for java is here:
http://www.slackware.org.br/~patrick...ches/packages/

Good luck :)


The location of the 1.5.0 plugin:
libjavaplugin_oji.so -> /usr/java/jre/plugin/i386/ns7/libjavaplugin_oji.so


All times are GMT -5. The time now is 01:52 AM.