LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
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.

Notices



Reply
 
Search this Thread
Old 02-19-2006, 03:16 PM   #1
harshnoise
Member
 
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

Code:
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?

Thanks,


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

Rep: Reputation: 330Reputation: 330Reputation: 330Reputation: 330
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
paulsm4
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!):
http://www.lykkenborg.no/blog/java/2...0Linux%20HOWTO


2. Use "alternative --configure" to control which (of multiple JDK's) is the default:
https://www.redhat.com/archives/fedo.../msg00231.html

3. Simply (as dmail suggested) set your environment to point to one or the other:
http://www.linuxquestions.org/questi...d.php?t=414008
http://www.linuxquestions.org/questi...d.php?t=167971

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
$JAVA_HOME
$JAVA_BIN
$CLASSPATH
etc etc

'Hope that helps .. PSM

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


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
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 11:03 PM.

Main Menu
Advertisement
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