I installed the latest java version 10.0.1 on Mac. and funny part not all of the apps yet support it.
The official instructions to remove Java on java and apple site are:
- sudo rm -fr /Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin
- sudo rm -fr /Library/PreferencePanes/JavaControlPanel.prefPane
- sudo rm -fr ~/Library/Application\ Support/Java
These steps were useless, till I installed jdk 1.8 and located the installed version.
$cd /Library/Java/JavaVirtualMachines
$ls
jdk-10.0.1.jdk jdk1.8.0_171.jdk
and then
$sudo rm -rf jdk-10.0.1.jdk/
jdk 10 is gone 🙂
$ java -version
java version “1.8.0_171”
Java(TM) SE Runtime Environment (build 1.8.0_171-b11)
Java HotSpot(TM) 64-Bit Server VM (build 25.171-b11, mixed mode)