Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to uninstall Java 9 on macOS Sierra

I'm having trouble removing Java 9 from my macOS Sierra system.

I accidentally installed Java 9, instead of Java 8, so now all my Eclipse projects give me these warnings: Build path specifies execution environment JavaSE-1.8. There are no JREs installed in the workspace that are strictly compatible with this environment.

I have used the following guide, but it did not work. Here is my command output when running java -version from the command line:

java version "9"
Java(TM) SE Runtime Environment (build 9+181)
Java HotSpot(TM) 64-Bit Server VM (build 9+181, mixed mode)
like image 770
Espin Avatar asked Dec 20 '17 00:12

Espin


1 Answers

for macOS high sierra removing java 9:

delete the java folder you find in the dir shown to you after executing:

/usr/libexec/java_home -V

use "Go to" in finder and copy and paste the dir to get there

like image 114
Stephen Ga Avatar answered Sep 20 '22 10:09

Stephen Ga