Whether you’re sick of Java’s security issues or find it unnecessary, there’s a pretty easy way to uninstall Java from your Mac using Java’s installer. Furthermore, you can also use Terminal to remove Java without leaving a trace. We’ll discuss both methods.
Uninstall Java From Your Mac With the Java Installer
Java can’t beuninstalled like other Mac apps—you can’t click and drag the app to the Trash and call it a day. Fortunately, the very thing that put Java on your Mac, its installer, can be used to uninstall it quickly and easily.
To use the Java installer to remove it from your Mac, you have to find it first. Unless your internet downloads go elsewhere, it should be in yourDownloadsfolder. But if you may’t find the installer or you deleted it, download it again fromJava’s website.

Once you’ve located the installer, which should have a .dmg extension, you can remove Java from macOS by doing the following:
Now, all you need to do is click and drag both theJava 8 Updatedisk installer and .dmg files to the Trash.

Use Terminal to Remove Java From Your Mac
If you like using Terminal to execute commands on your Mac or you want to go above and beyond to make sure you remove every trace of Java from macOS, do the following:
You’ve successfully removed all traces of Java from your Mac.
Java is a programming language that creates some security issues for Mac and is not as relevant as it once was. It’s pretty easy to uninstall with its own installer, but using Terminal is preferable if you want the most thorough method.


