---
title: "Uninstalling Java on Mac"
canonical: "https://kb.uconn.edu/space/IKB/10733127448/Uninstalling%20Java%20on%20Mac"
format: markdown
---
Users can uninstall Java from Mac computers. 

> ⚠️ To uninstall Java, you must have administrator privileges.

If you are comfortable using the command prompt, Java can be completely uninstalled using several commands. The remove command, **rm**, can be either executed as root or by using the **sudo **tool.

1. Click on the **Finder** icon located in your dock.
2. Click on the **Utilities **folder.
3. Double-click on the **Terminal **icon.
4. In the Terminal window, **Copy and Paste **the commands below:

```
sudo rm -fr /Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin
sudo rm -fr /Library/PreferencePanes/JavaControlPanel.prefPane
sudo rm -fr ~/Library/Application\ Support/Java
```

> ⚠️ Do not attempt to uninstall Java by removing the Java tools from **/usr/bin**. This directory is part of the system software and any changes will be reset by Apple the next time you perform an update of the operating system.

## Related Articles

> Macro (contentbylabel)

> Macro (details)
> 
> | Related issues |  |
> | --- | --- |