LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   JRE Problems (https://www.linuxquestions.org/questions/linux-newbie-8/jre-problems-6001/)

sunilkgarg 08-29-2001 02:20 PM

JRE Problems
 
:newbie:

I downloaded the Java Runtime Environment 1.3.1 off of Sun's Java Website. It installed, but Linux doesn't recognize it. The command 'java -version' comes out as 1.1.8, which is what I was trying to upgrade from. I know 1.3.1 is installed, because it is in /usr/java/jdk1.3.1.

I am running SuSE Linux 7.2 Personal, which I just installed 2 mos. ago.

Thanks a lot. :p

rolf 09-01-2001 03:18 PM

Howdy-

Did you follow the install instructions at the sun website? I did and found two things that were not clear.

One, it says to 'export the NPX_PLUGIN_PATH'. I did and, sure enough, $ env showed that this path was in effect. However,

Two, export only works for the current session so, after a reboot, the path was no longer in effect. Well, I figured to add the export-PATH line to the bottom of my ~/.bash_profile and it gets set at boot but, OK,

Three, this wiped out the path to my other netscape plugins, so I added that path to the line in .bash_profile:

export NPX_PLUGIN_PATH=/usr/java/jre1.3.1/plugin/i386/ns4:/home/rolf/.netscape/plugins

Suggest you take another look at sun's install directions and, maybe, try something like what I did.

jharris 09-02-2001 07:36 AM

You'll want to find the 1.1.8 version of java and remove it, then make a symlink to the new java binary in somewhere like /usr/local/bin using something like
Code:

ln -s /usr/java/jdk1.3.1/java /usr/local/bin/java
that way it'll be available for all your users without needing to play with any paths.

HTH

Jamie...


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