To uninstall Java from your PC or Mac:
- On Windows: Simply use the Apps dialog, which can be found in Windows Settings/control panel. Scroll down to ‘J’ in the list of installed apps, and uninstall anything Java related.
- On a Mac: Open your Terminal and one at a time, enter the following commands (the first one will require you enter your password – NOTE: in Terminal, when you enter your password, you’ll see a little key icon, and what you type will not show up on the terminal window):
sudo rm -rf /System/Library/Java/JavaVirtualMachines/*.jdk sudo rm -rf /Library/Java/JavaVirtualMachines/*.jdk sudo rm -rf /Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin sudo rm -rf /Library/PreferencePanes/JavaControlPanel.prefpane
- Once uninstalled, if you check to see what version of Java you have, you should see something like “no Java runtime found” etc.
- Otherwise, you’ll still see a message like this: