Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 10-02-2002, 02:58 AM   #1
Registered: Apr 2001
Location: Cheney, WA
Distribution: SuSE Linux Professional 9.2
Posts: 556

Rep: Reputation: 30
Question 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...
samer@linux:/usr> java -version
java version "1.1.8"
Now to verify that the j2sdk 1.4 was installed correctly, i also tried...
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)

This has been troubling me for quite some time. Can anyone please help?
Old 12-18-2002, 03:02 PM   #2
Registered: Oct 2001
Location: Columbus, Ohio
Distribution: all.. but mainly SuSe--- looks like it changing to Red Hat
Posts: 119

Rep: Reputation: 15
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

Last edited by BaerRS; 12-18-2002 at 03:04 PM.
Old 12-18-2002, 08:46 PM   #3
Registered: Apr 2001
Location: Cheney, WA
Distribution: SuSE Linux Professional 9.2
Posts: 556

Original Poster
Rep: Reputation: 30
hmm, u confused me. I will try it in Linux next time i boot into linux. thanx
Old 12-18-2002, 09:09 PM   #4
LQ Guru
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 68
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.



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
j2sdk install Larke Linux - Software 10 06-25-2004 02:11 PM
j2sdk is already installed ...? happy78 Linux - Software 4 06-08-2004 05:37 PM
Can't Delete J2SDK LinuxNoob17 Linux - Software 10 05-03-2004 09:24 PM
Problem: SuSE 9.0, J2SDK 1.4.2_4, Jakarta Tomcat 5.0.19 jsokko Linux - Distributions 3 03-29-2004 01:35 PM
PROBLEMS WITH j2sdk-1.4.2- jon_k Linux - Software 5 08-02-2003 05:29 PM > Forums > Linux Forums > Linux - Software

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

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration