How to uninstall Java and JRE from Mac OS using Command Line? Uninstalling Java 100% on Mac - 2020 step by step beginner's guide?
Prerequisite: Administrator Access on macOS
Note:
1) Don't remove "/usr/bin/java" as it is part of Mac operating system.
2) DK gets installed in ~/Library/Java/JavaVirtualMachines directory.
There is no Java uninstaller for mac. So we need to execute a few commands to uninstall a specific version or completely on Mac:
Remove Specific Version:
----------------------------------------
1) Go to /Library/Java/JavaVirtualMachines directory in command line
cd /Library/Java/JavaVirtualMachines.
2) Check for JDKs installed
ls
3) Remove the version that you want to uninstall
sudo rm -rf jdk-14.0.2.jdk
Remove Completely:
-----------------------------------
First close browser or app that may use Java.
To remove All JDKs
sudo rm -rf "/Library/Java/JavaVirtualMachines"
To remove Java Applet Plugin
sudo rm -rf "/Library/Internet Plug-Ins/JavaAppletPlugin.plugin"
To remove Java Control Panel
sudo rm -rf "/Library/PreferencePanes/JavaControlPanel.prefPane"
To remove Applet, Web Start and installation related caches
sudo rm -rf "/Library/Application Support/Oracle/Java"
worth deleting /Library/Application Support/Java too
sudo rm -rf "/Library/Application Support/Java"
Notes:
All steps mentioned here are more of less same for JDK 8, 9, 10, 11, 12,13, 14, 15 and macOS
If you encounter any issue, please don't hesitate to let me know in the comment section.
#UninstallJava #Java #macOS #JavaJDK15 #SrcCodes #Java15 #Javatutorial #mac
~~~~~~~~~~~~~~~~~~~~~
Follow Me on:
Facebook: / abhijit.gh0sh
Twitter: https://twitter.com/intent/follow?sou...
Linkedin: / abhijitghosh
~~~~~~~~~~~~~~~~~~~~~
For more tutorials subscribe & follow
Youtube: https://youtube.com/srccodes?sub_conf...
Facebook: / srccodes
Twitter: https://twitter.com/intent/follow?sou...
Website: https://www.srccodes.com
Please Like and Subscribe to support this channel.