LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 01-13-2007, 08:59 AM   #1
pahidla
LQ Newbie
 
Registered: Jan 2007
Posts: 2

Rep: Reputation: 0
How to upgrade java?


I figured the following ought to do it, but as you can see, it didn't. So how can I upgrade from 1.4.x to 1.6?

[af@i ~]# java -version
java version "1.4.2"

[af@i ~]# rpm -i jdk-6-linux-i586.rpm
Unpacking JAR files...
rt.jar...
jsse.jar...
charsets.jar...
tools.jar...
localedata.jar...
plugin.jar...
javaws.jar...
deploy.jar...

[af@i ~]# rehash

[af@i ~]# java -version
java version "1.4.2"
 
Old 01-13-2007, 10:12 AM   #2
allelopath
Member
 
Registered: Jan 2003
Location: New Mexico
Distribution: Ubuntu 18.04.3 LTS
Posts: 539

Rep: Reputation: 30
You don't really upgrade. You just download the new one (and delete the old one, but I would keep the old one for a while until you certain everything with the new one is working)
 
Old 01-13-2007, 10:20 AM   #3
pahidla
LQ Newbie
 
Registered: Jan 2007
Posts: 2

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by allelopath
You don't really upgrade. You just download the new one (and delete the old one, but I would keep the old one for a while until you certain everything with the new one is working)
Thanks for the response. Actually I'm happy to wipe out the old one since I know from using the code on a different machine that everything works.

Would you be so kind as to give details on how to remove the old one and install the new one. (Please forgive me for not trying to become a linux admin guru, but instead looking for a quick fix.)

Thank you!

Pahidla
 
Old 01-14-2007, 11:37 AM   #4
allelopath
Member
 
Registered: Jan 2003
Location: New Mexico
Distribution: Ubuntu 18.04.3 LTS
Posts: 539

Rep: Reputation: 30
If you had installed the old java with rpm, you can look for it with:
# rpm -q -a | grep java
then to remove it
# rpm --erase <java package name>

If you didn't install with rpm, to remove the old java you have to know where it is. If you do, just remove the folder. If you dont do:
# updatedb
# locate java

This first command will take a while. The second command may produce a long list, but you should be able to see where the installation directory is.

Last edited by allelopath; 01-14-2007 at 11:53 AM.
 
Old 01-14-2007, 02:24 PM   #5
mr_dean
LQ Newbie
 
Registered: Jan 2007
Posts: 5

Rep: Reputation: 0
rpm -u is for upgrade AFAIK. Perhaps you could try that.

Or deinstall old version and install new one as someone suggested should help.

Maybe you should check JAVA_HOME value of current user and check all files :
$ cd /etc
$ find . -type f | grep "java"
 
Old 01-15-2007, 07:01 AM   #6
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 58
To everybody in this thread:

Please review; http://www.linuxquestions.org/questi...d.php?t=517133
 
  


Reply



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
LXer: Java news met with cautious optimism in free Java community LXer Syndicated Linux News 0 11-14-2006 10:21 PM
Java - JAVA_HOME problem after upgrade ssa2204 Linux - Newbie 5 08-24-2006 06:32 PM
Problem with Java Upgrade 1.5.0_06 Romanator Linux - Software 3 02-09-2006 06:59 PM
Can't Upgrade Java... carlosinfl Ubuntu 6 01-02-2006 07:34 AM
upgrade from java 1.4 to 1.5 true_atlantis Fedora 5 08-27-2005 03:37 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 03:42 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
Open Source Consulting | Domain Registration