
Linux: Check /usr/java/default or /usr/lib/jvm.

If it is not set, you need to find out where the JDK has been installed to:

(The above link has installers for MacOS too, but you want a Java that is as tightly integrated into your operating system as possible.) In a console (or command prompt, or terminal) window, check that it works: javac -version Environment variables You need to have three environment variables correctly set: JAVA_HOME, PATH, and HADOOP_CLASSPATH. MacOS: Use an online tutorial for this.

The JAVA_HOME path shall not contain the substring /jre anywhere (but it contains a subfolder called jre).
