Share your knowledge at the LQ Wiki.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 02-19-2006, 03:16 PM   #1
Registered: Feb 2005
Location: Newcastle, England
Distribution: SuSE Pro 9.2
Posts: 35

Rep: Reputation: 15
Problems installing Java SDK 1.5.0

Hi everyone, I'm trying to install the new JDK on my machine using the command

linux:> rpm -iv jdk-1_5_0_06-linux-i586.rpm
But there obviously needs to be some sort of configuration files adjusted because everything still points to version 1.4.2.

Any ideas where to start looking?


Old 02-19-2006, 03:57 PM   #2
Senior Member
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,265

Rep: Reputation: 369Reputation: 369Reputation: 369Reputation: 369
Type 'which javac' to see where the javac you're using is. Sun's packages install each java version into a new directory, so chances are you just need to update your $PATH to point to the new java installation.
Old 02-19-2006, 04:30 PM   #3
LQ Guru
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
There are several ways to go:

1. Uninstall the previous (this is NOT necessary!):

2. Use "alternative --configure" to control which (of multiple JDK's) is the default:

3. Simply (as dmail suggested) set your environment to point to one or the other:

Many prefer to do this globally in /etc/profile or $HOME/.bashrc; I think there are advantages in a per-project "env.rc" file. The only "critical" one as $PATH. Other environment variables include
etc etc

'Hope that helps .. PSM

Last edited by paulsm4; 02-19-2006 at 04:32 PM.


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
error installing java sdk on debian packinNoVa Debian 2 02-07-2006 08:26 AM
Installing Java SDK 1.4.2_05 hevykevy7 Linux - Software 4 09-11-2004 05:39 AM
Installing JAVA SDK 1.3 on RedHat7.3 jenze76 Linux - Software 2 08-15-2004 11:31 AM
Installing Java SDK 1.4.2 grrr........... hadding Linux - Newbie 1 11-09-2003 08:25 AM
Java sdk problems ... terjul Slackware 3 02-10-2003 11:22 AM

All times are GMT -5. The time now is 02:39 AM.

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