System/Library/Frameworks/amework/Versions/Current In macOS X 10.6, the following paths seem to be valid for this variable /Library/Java/Home
Many Java applications that use shell scripts to configure their environment use the JAVA_HOME environment variable to start the correct version of Java, locate JRE JARs, and so on.