LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Getting J2SDK 1.4.0 to work the SuSE way!! ????? (https://www.linuxquestions.org/questions/linux-software-2/getting-j2sdk-1-4-0-to-work-the-suse-way-31671/)

shassouneh 10-02-2002 02:58 AM

Getting J2SDK 1.4.0 to work the SuSE way!! ?????
 
Dear All,
After searching the forums and finding nothing that nworked, I decided to share my greif with you all, in hopes that someone might have a solution to this problem.

First of all, I am running SuSE Linux Professional 8.0. This comes with a crummy oooooold version of java (1.1.8).

I have just downloaded and installed the J2SDK 1.4 from Sun, and It has installed to /usr/java/j2sdk1.4.0_02

Now I need this new version of the SDK and the JRE that comes with it to over0ride the older versions for both applications, AND the web browser (Mozilla). I have no idea how to succesfully edit the PATH variable in SuSE. I have tried it serveral times but failed. Here is what I get when I try to find out the installed java version...
Quote:

samer@linux:/usr> java -version
java version "1.1.8"
samer@linux:/usr>
Now to verify that the j2sdk 1.4 was installed correctly, i also tried...
Quote:

samer@linux:/usr/java/j2sdk1.4.0_02/bin> ./java -version
java version "1.4.0_02"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0_02-b02)
Java HotSpot(TM) Client VM (build 1.4.0_02-b02, mixed mode)
samer@linux:/usr/java/j2sdk1.4.0_02/bin>

This has been troubling me for quite some time. Can anyone please help?

BaerRS 12-18-2002 03:02 PM

I believe the way you want to do this, but you might want to post this on suse's e-mail list as well.

SuSE puts the java in: /usr/lib/jdk.1.1.8

then has a link to this: /usr/java -> /usr/lib/jdk.1.1.8
You should see /usr/lib/java/bin in your path:

what you would need to do, is move it into the /usr/lib dir

mv /usr/java/j2sdk1.4.0_02 /usr/lib/.

ln -s /usr/lib/j2sdk1.4.0_02 /usr/lib/java

now run your:

java -version

shassouneh 12-18-2002 08:46 PM

hmm, u confused me. I will try it in Linux next time i boot into linux. thanx :)

MasterC 12-18-2002 09:09 PM

Those directions are actually pretty straight forward Shassouneh. I think once you boot into linux you will see what they are talking about.

My quick suggestion is to simply uninstall via SuSE's uninstall program (probably in Yast2?) the java program in question.

That'd be the first thing I'd do. After that you might even be able to simply get a "live update" of java if you haven't tried already.

Cool


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