Maybe you installed the wrong Oracle Java JDK version or you need to remove an old JDK that you no longer require. Whatever the reason, uninstalled the Oracle Java JDK from a Mac is super easy.
There are two steps to uninstalling the JDK: 1. Uninstall the JDK 2. Uninstall the JRE
cd /Library/Java/JavaVirtualMachines/ # Get a list of the currently installed JDKs ls # Change the directory name below based on the JDK version you want to uninstall sudo rm -rf jdk1.7.0_71.jdk
sudo rm -rf /Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin/
The JDK and JRE are now uninstalled.
If you require JDK 7, then you can install the Oracle Java JDK 7 update 75.
If this blog post helped you, please subscribe to our newsletter.
We specialize in helping professional developers, like you, expand your skill set. Our courses are focused on enabling you to learn everything necessary to use a new technology in a live, production application.
All courses are made with love in
Palo Alto, CA.
Subscribe to our newsletter