[Resolved] Remove Java completely from Mac / Linux

sudo rm -fr /Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin 
sudo rm -fr /Library/PreferencePanes/JavaControlPanel.prefPane 
sudo rm -fr ~/Library/Application\ Support/Java

# Remove Java runtime from the root of your system
cd /Library/
rm -rf Java/

Ver­ify Java in uninstalled

java -version

You may also like...