Last active
March 26, 2019 01:59
-
-
Save cbfl/4594828 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rm ~/Library/Caches/Java/deployment.properties | |
sudo rm -rf /System/Library/Frameworks/JavaVM.framework/Versions/1.6.0 | |
sudo rm -f /System/Library/Frameworks/JavaVM.framework/Versions/1.6 | |
sudo rm -rf /System/Library/Java/JavaVirtualMachines/* | |
sudo rm -rf /Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin | |
sudo rm -f /private/var/db/receipts/com.apple.pkg.JavaForMacOSX107.bom | |
sudo rm -f /private/var/db/receipts/com.apple.pkg.JavaForMacOSX107.plist | |
DONWLOAD: http://download.oracle.com/otn-pub/java/jdk/7u15-b03/jdk-7u15-macosx-x64.dmg |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
There are two steps to uninstalling the JDK: 1. Uninstall the JDK 2. Uninstall the JRE
Step 1:
cd /Library/Java/JavaVirtualMachines/
Step 2:
Get a list of the currently installed JDKs ls
Step 3:
Change the directory name below based on the JDK version you want to uninstall
sudo rm -rf jdk1.7.0_71.jdk
Step 4:
sudo rm -rf /Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin/
References: Uninstall Java Mac 2019