How Do I Uninstall and Install Java on Ubuntu?
Contents

How do I uninstall Java on Ubuntu?

“apt-get purge” command can remove those packages completely. So remove all files resides in “java-7-oracle” folder with root permission and extract the latest JDK or JRE files in it. That’s it now you would have the latest Java version Installed.

How do I uninstall Java 11 on Ubuntu?

To completely remove jdk from your system, follow these below steps:

  1. Type sudo apt-get autoremove default-jdk openjdk- (Don’t hit Enter right now).
  2. Now press tab button for 2 or 3 times, you will get list of packages starting with openjdk- .
  3. Look for name like openjdk-11-jdk .
Sophia Al-Mansoor

Sophia Al-Mansoor

Global Business & E-Commerce Reporter

Sophia analyzes international trade, startup ecosystems, retail transformation, and supply chain logistics for modern digital publications.

Share this article
Twitter Facebook Pinterest