Use /usr/libexec/java_home -v 1.8
command on a terminal shell to figure out where is your Java 1.8 home directory
If you just want to find out the home directory of your most recent version of Java, omit the version. e.g. /usr/libexec/java_home
Use /usr/libexec/java_home -v 1.8
command on a terminal shell to figure out where is your Java 1.8 home directory
If you just want to find out the home directory of your most recent version of Java, omit the version. e.g. /usr/libexec/java_home