How do I completely remove JDK from Ubuntu?

Ánh Dương

New member
How do I completely remove JDK from Ubuntu?
Answer
How To Uninstall JDK From Linux ?
  1. Uninstall Oracle JDK. Remove The Link. First of all remove the alternatives by executing the following commands: $ sudo update-alternatives –remove “java” “/usr/lib/jvm/jdk[version]/bin/java”
  2. Uninstall Openjdk. If you want to remove Openjdk only, execute the following command on terminal: $ sudo apt-get remove openjdk*
 

Tìm kiếm

Back
Top