Friday, February 1, 2013

How to remove JDK in Ubuntu Linux

Java SE 7 Update 13 released, so I have to remove old jdk and install the updated version.

To remove jdk using update-alternatives, open Terminal and type the commands:

sudo update-alternatives --remove "javac" "/home/you/jdk1.7.0_11/bin/javac"
sudo update-alternatives --remove "java" "/home/you/jdk1.7.0_11/bin/java"

remove JDK in Ubuntu Linux
remove JDK in Ubuntu Linux

After remove the old jdk, you can remove the old jdk from your hardisk, and re-install the new JDK 7 and update-alternatives.

No comments:

Post a Comment