Search
Download (/inc/[Link]?locale=en) Help (/en/download/help/)
Help Resources (?printFriendly=true)
(/en/download
How do I uninstall Java on my Mac?
/help/[Link])
Installing Java
(/en/download
/help/index_installing.xml)This article applies to:
Disable Java
(/en/download Platform(s): macOS
/help/disable_browser.xml)
Using Java
(/en/download
/help/index_using.xml) macOS Users: Improve the security of your computer by checking for an out-of-date
General Questions version of Java and removing it by using the Java Uninstall Tool (/en/download
(/en/download /[Link]) .
/faq/index_general.xml)
» Learn more about the Java Uninstall tool (/en/download
Mobile Java /faq/macOS_uninstaller_toolfaq.xml)
(/en/download
/faq/index_mobile.xml)
Security
(/en/security/)
Uninstall Oracle Java using the Terminal
Support Options
(/en/download
Note: To uninstall Java, you must have Administrator privileges and execute the remove
/[Link])
command either as root or by using the sudo tool.
Remove one directory and one file (a symlink), as follows:
1. Click on the Finder icon located in your dock
2. Click on Go in the Finder menu
3. Click on Utilities
4. Double-click on the Terminal icon
5. In the Terminal window Copy and Paste the commands below:
sudo rm -fr /Library/Internet\ Plug-Ins/[Link]
sudo rm -fr /Library/PreferencePanes/[Link]
sudo rm -fr ~/Library/Application\ Support/Oracle/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 OS.
Note: After successfully uninstalling Java, you may remove Java Deployment cache using these
instructions (/deploymentcache/) .
Can I restore Apple Java 6 after uninstalling Oracle Java?
Yes, see the instructions on the Apple website Restore Apple Java 6 ([Link]
/kb/HT5559?viewlocale=en_US) . If you have JDK 7 or later versions installed on your system and
you want to restore Apple Java 6, then those JDK versions need to be uninstalled first. See the
instructions to Uninstall JDK ([Link]
/mac_jdk.html) .
MORE TECHNICAL INFORMATION
Uninstall JDK
To uninstall JDK 7 and later versions, you must have Administrator privileges and execute the
remove command either as root or by using sudo. See the instructions to Uninstall JDK
([Link] .
You might also be interested in:
Mac OS X information for installing and using Java (/en/download/faq/java_mac.xml)
How do I install Java for my Mac? (/en/download/help/mac_install.xml)
Where is the Java Control Panel on Mac? (/en/download/help/mac_controlpanel.xml)
How do I clear Java cache on my Mac? (/en/download/help/mac_java_cache.xml)
How do I Update Java for my Mac? (/en/download/help/mac_java_update.xml)