Quick Answer: How to Uninstall Java in Linux?
Contents

How To Uninstall JDK From Linux ?

  • 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”
  • Uninstall Openjdk. If you want to remove Openjdk only, execute the following command on terminal: $ sudo apt-get remove openjdk*

How do I uninstall Java on Centos?

grep java” into the terminal and press “Enter.” The name of each installed Java package appears in the terminal. Type “rpm -e package” into the terminal, replacing “package” with the name of the Java package from the previous command. You can remove multiple packages by separating each package name with a space.

How do I uninstall Java version?

Older versions of Java may appear in the program list as J2SE, Java 2, Java SE or Java Runtime Environment.

Manual Uninstall

  1. Click Start.
  2. Select Settings.
  3. Select System.
  4. Select Apps & features.
  5. Select the program to uninstall and then click its Uninstall button.
  6. Respond to the prompts to complete the uninstall.
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