How To Uninstall Java On MAC M2| M1| Or Any Other Version

Published: 19 September 2023
on channel: Mukesh otwani
14,700
149

You might need to remove or uninstall java due to any reason then follow below commands

Uninstall java

rm will remove the specified file or directory.

options
-r If it's a directory, it will remove all its contents recursively, including subdirectories/files and their contents.
-f Do this forcefully without asking for confirmation for each files and folders.
sudo rm -rf /Library/Java/JavaVirtualMachines/jdk[version].jdk

Example:
sudo rm -rf /Library/Java/JavaVirtualMachines/jdk-11.jdk

Additional Files/Folders
sudo rm -rf /Library/PreferencePanes/JavaControlPanel.prefPane
sudo rm -rf /Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin
sudo rm -rf ~/Library/Application\ Support/Oracle/Java

Connect with us:
Email - [email protected]
Linkedin-   / mukesh-otwani-93631b99  
Instagram-   / mukeshotwaniofficial  
Facebook Group-   / 256655817858291  


Watch video How To Uninstall Java On MAC M2| M1| Or Any Other Version online without registration, duration hours minute second in high quality. This video was added by user Mukesh otwani 19 September 2023, don't forget to share it with your friends and acquaintances, it has been viewed on our site 14,700 once and liked it 149 people.