This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes java uninstallation in linux Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "java uninstallation in linux" Watch "java uninstallation in linux" New topic
Author

java uninstallation in linux

preethi Ayyappan
Ranch Hand

Joined: Oct 04, 2007
Posts: 518
Hi

I need to install java source level 5.0 in my linux machine.But already java 1.4.2 is installed default with linux.Even i have installed "java_ee_sdk-5_01-linux" ,the working version is jdk 1.4.2.How can i uninstall the old version and install jdk5

Thanks
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24183
    
  34

Java EE 5 is different than JDK 5 (also called "Java SE 5"). EE is "Enterprise Edition" which, confusingly, isn't a superset of the JDK; it contains totally different stuff.

Linux systems are generally very happy to have multiple versions of Java installed at once, by the way.


[Jess in Action][AskingGoodQuestions]
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 38075
    
  22
You edit the PATH to have the requisite version appear first. But if the most recent J2SE JDK you have is 1.4.2, then it will remain 1.4.2.
Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 14074
    
  16

Which version of which Linux distribution are you using, and how did you install Java?

Different Linux distributions have different ways to manage what software is installed on the system.


Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 7 API documentation
Scala Notes - My blog about Scala
preethi Ayyappan
Ranch Hand

Joined: Oct 04, 2007
Posts: 518
Thank you all.
I have solved the problem by changing the path to the new version.
[ November 27, 2008: Message edited by: preethi Ayyappan ]
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: java uninstallation in linux
 
Similar Threads
Where is Java Set up?
J2EE RI Servers
Help for Tomcat needed!
javac only returns 'Killed'
Installation of Eclipse On Linux