Custom Search

Thursday, October 17, 2013

How to Remove OpenJDK Ubuntu 15.04 14.10 14.04 13.04 12.04

1)
Check Version
#java -version

2)
First check the current setup before we uninstall Java
#sudo update-alternatives --display java
OR
#sudo update-alternatives --config java

3)
Check which JDK packages are installed
#sudo dpkg --list | grep -i jdk

#Remove Java
#sudo apt-get purge icedtea-* openjdk-*

Check that all JDK packages have been removed
#sudo dpkg --list | grep -i jdk

3 comments: