Siddharth Koya
Siddharth Koya

Reputation: 103

Java wont uninstall on mac OS(Mojave)

i have followed this procedure as per documentation by java

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

but still when i perform java -version in terminal

java version "11.0.1" 2018-10-16 LTS
Java(TM) SE Runtime Environment 18.9 (build 11.0.1+13-LTS)
Java HotSpot(TM) 64-Bit Server VM 18.9 (build 11.0.1+13-LTS, mixed mode)

when i try to remove jdk this comes up

rm -r ~/"Library/Application Support/Oracle/Java" 
rm: /Users/<>/Library/Application Support/Oracle/Java: No such file or directory

i am unable to locate java control panel in sys preferences(Even when i first installed java on machine it didnt show on up sys preferences), nor in finder library

unable to figure out what's the issue

Upvotes: 0

Views: 1994

Answers (1)

Kannappan Sirchabesan
Kannappan Sirchabesan

Reputation: 1382

Check the correct location of Java using the below command in the terminal

/usr/libexec/java_home

and then delete the folder using sudo rm -rf

Upvotes: 4

Related Questions