How to Uninstall Java on Mac

Uninstall Java on Mac

The need to have Java installed on your Mac is needless, to say the least.

Why may you ask? Because it’s not required for most of the applications on the machine. Besides, if any applications do need it, we can install it then whenever we’re asked.

However, the issue with Java is that it comes preinstalled (without permission), and it is no straightforward task where you can hit an “Uninstall” button just like every other application to remove it. 

Now bear in mind that some applications, specifically applications that are Java-dependent like IDEs, office suite applications like OpenOffice or LibreOffice, torrent clients, and more, will rely on Java to work.

Once you’ve removed Java on your Mac, these applications won’t work anymore.

In this guide, we will show you how to uninstall Java entirely from your Mac. 

Let’s begin!

How to Unistall Java on Mac

  1. First, make sure that there are no apps running in the background. Specifically, ensure that applications which uses Java are closed.
  2. After that, access the Finder on your Mac. You can press Command + Space on your keyboard and look for “Finder” on Spotlight Search.
  3. Now, click on Go and select the Go to Folder option. Copy the path below:

/Library/Internet Plug-ins/

  1. Inside the folder, locate JavaAppletPlugin.plugin and delete it.
Uninstall Java on Mac
  1. Once done, go back to the Go to Folder option and copy the path below:


  1. Find the JavaControlPanel.prefPane file and delete it.
  2. Lastly, go to the path below and delete the Java folder.

~/Library/Application Support/Java/

Once done, restart your Mac, and Java should be completely removed from your system.

Use Your Mac’s Command-Line

Take note that you must be careful when entering the code below into your Command-Line as mistyping a syntax such as ‘rm’ with superuser privileges can cause a whole lot of unwanted trouble. 

Here are the steps:

  1. First, open your Finder and go to Utilities > Terminal.
  1. Now one by one carefully enter the following lines individually in the Terminal:

sudo rm -rf "/Library/Internet Plug-Ins/JavaAppletPlugin.plugin"

sudo rm -rf "/Library/PreferencePanes/JavaControlPanel.prefPane"

sudo rm -rf "~/Library/Application Support/Java"

  1. Lastly, wait for the process to finish.

After running the command, Java should be completely uninstalled from your Mac. As we have mentioned in the beginning, if you were ever to encounter problems with your applications that use Java, you have no other choice but to reinstall Java.

Fortunately, most applications on macOS don’t require Java, and hence the methods above will help you remove it from your Mac.

We hope that this guide has helped uninstall Java on your Mac. If you have questions, feel free to leave a comment below, and we will love to help you out.

If this guide helped you, please share it. 🙂

Leave a Reply

Your email address will not be published. Required fields are marked *

Previous Post
iPhone 11 Pro Max Camera Issues

How to Fix iPhone 11 Pro Max Camera Issues

Next Post

How to Fix DPC Watchdog Violation Windows 10

Related Posts