LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   JRE1.5.0_09 can't install (https://www.linuxquestions.org/questions/linux-newbie-8/jre1-5-0_09-cant-install-522141/)

RichardMendoza 01-23-2007 03:54 PM

JRE1.5.0_09 can't install
 
I cannot getfirefox to run a java applet 1.5.0_09, it keeps saying missing plugin.

This is what I've done.

1. downloaded the jre-1_5_0_09-linux-i586.bin to /usr/java
2. chmod 775 jre-1_5_0_09-linux-i586.bin
3. ./jre-1_5_0_09-linux-i586.bin
4. took all defaults, when asked
5. created link in /usr/lib/firefox/plugins by
cd /usr/lib/firefox/plugins
ln -s /usr/java/jre1.5.0_09/plugin/i386/ns7/libjavaplugin_oji.so
6. closed all firefox windows
7. restarted machine
8. started firefox, and still missing plugin

can anyone explain what I did wrong, I am on SUSE Desktop linux 10

Richard

pixellany 01-23-2007 04:02 PM

Check to see that it created a good link in step 9
Are you sure that you want the ns7 version and not the one with gcc-something?
Note that the most recent jre is 1_5_0_10

Check the instructions at the java site....

RichardMendoza 01-23-2007 04:13 PM

yes, the link looks good, it is shaded blue. how would I knowif i need to use the ns7-gcc29?

RichardMendoza 01-23-2007 04:19 PM

ok, i removed the link i had created and created a link using the gcc29 directory. firefox would not startup, so I switched back to the ns7 directory and firefox started.

I assume this means I should use the ns7 directory,

Richard

craigevil 01-23-2007 04:22 PM

Follow the direections here:
Installing Sun's Java on SUSE Linux - openSUSE
http://en.opensuse.org/Installing_Sun's_Java_on_SUSE_Linux

/usr/lib/jvm/java-1.5.0-sun-1.5.0.10/jre/plugin/i386/ns7/libjavaplugin_oji.so

Is more than likely the correct location, at least it is in Debian.

RichardMendoza 01-23-2007 04:57 PM

ok, I used yast as instructed, and re-linked using the jvm directory:

lrwxrwxrwx 1 root root 61 Jan 23 14:49 libjavaplugin_oji.so -> /usr/lib/jvm/jre1.5.0_09/plugin/i386/ns7/libjavaplugin_oji.so

with the same results. the java applet pages still come up with missing plugin, and it trys to direct me to load the jre 1.4.2 from the sun download page: http://java.sun.com/j2se/1.4.2/download.html

Richard

pixellany 01-23-2007 06:29 PM

So the applet wants an older version of jre? Is it possible there is a newer version of the applet available?
And what is the applet?

Quote:

re-linked using the jvm directory:
This is different than before--did you move jre from /usr/java to /usr/lib/jvm?

RichardMendoza 01-24-2007 10:23 AM

No, I'm sure the applet was written using a java 1.5 version as it is an in-house application.

I tried using the yast method to the same results. what bugs me is when I do a
java -version I do get 1.5.0_09. So why wouldn't firefox see this too.

Richard

Quakeboy02 01-24-2007 10:27 AM

Did you enable java in the Firefox preferences?

RichardMendoza 01-24-2007 10:55 AM

yes, both java and javascript are checked on.

the jvm directory link was suggested by Craigevil.

Quakeboy02 01-24-2007 11:03 AM

In that case, are you absutively posolutely sure that the firefox you're running is the one in /usr/lib/firefox? Try going there and typing ./firefox and see if it starts working.

RichardMendoza 01-24-2007 11:19 AM

ok, I believe thats it.
I did a which firefox, that had firefox as /usr/bin/firefox
I check /usr/bin/firefox and that had a link to /usr/lib/firefox/firefox.sh
inside firefox.sh there is a change to the browser plugin directory. It does not look in: /usr/lib/firefox/plugins, it re-directs it to /usr/$LIB/browser-plugins

BROWSER_PLUGIN_DIR=/usr/$LIB/browser-plugins
if [ ! -d $BROWSER_PLUGIN_DIR ]; then
BROWSER_PLUGIN_DIR=/opt/netscape/plugins
fi

The link there still had it pointing to the old java version.

thanks for all your assistance.

Richard

Quakeboy02 01-24-2007 01:46 PM

I wouldn't think you'd need a shell to run firefox. Just point directly to /usr/lib/firefox/firefox. Or is this left over from a previous version?


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