• Post Reply Bookmark Topic Watch Topic
  • New Topic

how to uninstall old jdk version  RSS feed

 
Holmes Wong
Ranch Hand
Posts: 163
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I have Redhat7.2, and my jdk version is jdk1.1.
I installed jdk1.4.0, when I check my java version, I still get jdk1.1. I guess I have to
unistall my old version first right? How to uninstall it? I try to reinstall newer version after I unistall it. Thanks.
 
SoonAnn Lim
Ranch Hand
Posts: 155
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When you say your jdk is 1.1 version, do you mean jdk from Sun or the default jdk comes with RH7.2? RH7.2 (i believe other versions is the same) comes with default jdk in a package called kaffe. You have to remove this package. Try this command, 'rpm -qa |grep kaffe' . If it returns result, use rpm to remove this package. One simple command will solve your problem.
'rpm -e kaffe' will remove kaffe from your system. Then you can proceed the usual way setting path and classpath.
 
Tim Holloway
Saloon Keeper
Posts: 18799
74
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I would not be suprised to see a loose JDK or two floating around on my RedHat systems, but the only ones I really care about are the recent Sun versions, which I downloaded and installed myself.
Linux doesn't have an inherently close connection to Java, so there's really nothing environmental to change except what I have set up in my user logon script.
Current JDK recommended structure is to place them in "/usr/java" - for example "/usr/java/j2sdk1.4.0".
I like to softlink so that "/usr/java/jdk" is an alias and use that. That way there's fewer things that have to be updated when a newer JDK appears.
If you have a JDK that was installed via an RPM, it's preferable to use RPM to uninstall it as well, since the java executables and stuff may have been mixed into your system-wide bin and lib directories. On the other hand, if you installed a version from a tarball, all you're likely to need do is just delete the directory tree containing that version of the JDK.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!