All of the previous commands that you’ve run within Terminal are listed here, giving you the ability to go back and see what you’ve already done. Conclusion The Terminal can help you configure your Mac exactly how you want it and provide access to features that just don't have any graphical interface to change.
How do I uninstall Java on my Mac?
This article applies to:- Platform(s): macOS
macOS Users: Improve the security of your computer by checking for an out-of-date version of Java and removing it by using the Java Uninstall Tool.
» Learn more about the Java Uninstall tool
» Learn more about the Java Uninstall tool
Uninstall Oracle Java using the Terminal
Note: To uninstall Java, you must have Administrator privileges and execute the remove command either as root or by using the
sudo
tool.Remove one directory and one file (a symlink), as follows:
- Click on the Finder icon located in your dock
- Click on Go in the Finder menu
- Click on Utilities
- Double-click on the Terminal icon
- 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/Oracle/Java
/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.
Can I restore Apple Java 6 after uninstalling Oracle Java?
Yes, see the instructions on the Apple website Restore Apple Java 6. 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.
MORE TECHNICAL INFORMATIONUninstall 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. You might also be interested in:
- Mac OS X information for installing and using Java
- How do I install Java for my Mac?
- Where is the Java Control Panel on Mac?
- How do I clear Java cache on my Mac?
- How do I Update Java for my Mac?
How do I uninstall Java on my Mac?
This article applies to:- Platform(s): macOS
macOS Users: Improve the security of your computer by checking for an out-of-date version of Java and removing it by using the Java Uninstall Tool.
» Learn more about the Java Uninstall tool
» Learn more about the Java Uninstall tool
Uninstall Oracle Java using the Terminal
Note: To uninstall Java, you must have Administrator privileges and execute the remove command either as root or by using the
sudo
tool.Remove one directory and one file (a symlink), as follows:
- Click on the Finder icon located in your dock
- Click on Go in the Finder menu
- Click on Utilities
- Double-click on the Terminal icon
- 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/Oracle/Java
/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. ![Commands For Mac Terminal Java Commands For Mac Terminal Java](/uploads/1/2/5/8/125854566/671144336.png)
Note: After successfully uninstalling Java, you may remove Java Deployment cache using these instructions.
Can I restore Apple Java 6 after uninstalling Oracle Java?
Yes, see the instructions on the Apple website Restore Apple Java 6. 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.
MORE TECHNICAL INFORMATIONUninstall 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. You might also be interested in:
- Mac OS X information for installing and using Java
- How do I install Java for my Mac?
- Where is the Java Control Panel on Mac?
- How do I clear Java cache on my Mac?
- How do I Update Java for my Mac?