How to Uninstall JDK 8 From Mac
Java has been one of the major programming languages for the past few decades. It is integral to computer science.
The Java JDK (Java Development Kit) is essential for establishing a development environment.
JDK is a development environment used for Java applets and application development. It includes an interpreter/loader, Java Runtime Environment (JRE), compiler (Javac
), documentation generator (Javadoc
), an archiver (jar
) and other necessary tools for Java development.
Uninstall JDK 8 on Mac
You can uninstall JDK 8 on your Mac via the Terminal with the following commands. Follow these steps to uninstall JDK 8 on macOS.
But remember to uninstall Java, you must have administrator privileges and execute the command as either root or use the sudo
tool.
Steps to uninstall JDK 8 on Mac:
-
Click on the
Finder
icon. -
Click on the
Utilities
folder. -
Double click the
Terminal
icon. -
Copy and paste these commands.
sudo rm -fr /Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin sudo rm -fr /Library/PreferencePanes/JavaControlPanel.prefPane sudo rm -fr ~/Library/Application\ Support/Oracle/Java
Don’t attempt to uninstall Java directly by removing Java tools from the /user/bin
. This directory /user/bin
is part of the system software, and changes in it will be reset by Apple on the next update of the OS.
Ensure that the JDK is successfully uninstalled on your Mac, and you can validate it through the Terminal
. Type the command java
in the terminal and press Enter.
And upon successful deletion, the expected message should be No Java runtime present, requesting install
.
Zeeshan is a detail oriented software engineer that helps companies and individuals make their lives and easier with software solutions.
LinkedIn