LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices

Reply
 
Search this Thread
Old 05-19-2005, 01:50 PM   #1
qwerty
Member
 
Registered: Feb 2005
Location: England
Distribution: Ubuntu 5.10
Posts: 80

Rep: Reputation: 15
upgrading to java 1.5 on suse 9.2


Hi, I downloaded the java 1.5 jdk from the sun website and installed it on suse 9.2. I used to have the 1.4.2 jdk that came with suse so i uninstalled that before installing 1.5. Two questions.

1) how do i set the paths so that typing java or javac, etc at the command line runs the relevant app. Ive tried adding the following to .bashrc in my home directory but it doesnt work
export PATH=/usr/java/jdk1.5.0_03/bin/java:$PATH
export PATH=/usr/java/jdk1.5.0_03/bin/javac:$PATH

2) when i uninstalled java 1.4.2 i had to uninstall openoffice and eclipse too. When i tried to reinstall open office yast automatically reinstalled the java 1.4.2 jre. How can i get the new programs to require java 1.5 instead of the old version

thanks in advance
 
Old 05-19-2005, 02:34 PM   #2
pilotgi
Member
 
Registered: Apr 2002
Location: ks
Distribution: openSUSE 12.2 64 bit
Posts: 488

Rep: Reputation: 32
Re: upgrading to java 1.5 on suse 9.2

Quote:
Originally posted by qwerty
Hi, I downloaded the java 1.5 jdk from the sun website and installed it on suse 9.2. I used to have the 1.4.2 jdk that came with suse so i uninstalled that before installing 1.5. Two questions.

1) how do i set the paths so that typing java or javac, etc at the command line runs the relevant app. Ive tried adding the following to .bashrc in my home directory but it doesnt work
export PATH=/usr/java/jdk1.5.0_03/bin/java:$PATH
export PATH=/usr/java/jdk1.5.0_03/bin/javac:$PATH

2) when i uninstalled java 1.4.2 i had to uninstall openoffice and eclipse too. When i tried to reinstall open office yast automatically reinstalled the java 1.4.2 jre. How can i get the new programs to require java 1.5 instead of the old version
You didn't need to uninstall openoffice and eclipse. What it was tellling you is these two programs need java to work. Since you were replacing 1.4.2 with 1.5.0 you would have been ok.

I think your syntax is wrong for your PATH commands. Try this:

export PATH=$PATH:/usr/java/jdk1.5.0_03/bin/java
 
Old 05-19-2005, 04:29 PM   #3
qwerty
Member
 
Registered: Feb 2005
Location: England
Distribution: Ubuntu 5.10
Posts: 80

Original Poster
Rep: Reputation: 15
I decided to reinstall all of the java 1.4.2 stuff so that i could put openoffice back on. The only reason i wanted to use java 1.5 was to use for programming and ive now set Eclipse up to use 1.5 rather than 1.4.2. So now everything uses 1.4.2 except for programs that i write, compile and run with eclipse.

Thanks for your suggestions, I'll try them next time I have time to tamper with my system
 
  


Reply


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
Upgrading to SuSE 9.2 SpEcIeS Suse/Novell 6 04-22-2005 10:29 PM
upgrading SuSE 7.0 leighd Linux - Newbie 1 11-25-2004 04:39 PM
Upgrading Suse 9 to Suse 9.1 via FTP tjracer66 Linux - Distributions 1 06-21-2004 12:07 PM
Upgrading to suse 8.2 Geosharp Linux - Distributions 5 07-12-2003 11:10 AM
upgrading java on red hat 9 mbbender Linux - Software 6 07-07-2003 01:47 PM


All times are GMT -5. The time now is 03:32 AM.

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