java_home

Return a value for $JAVA_HOME or execute command using this variable. More information: https://www.unix.com/man-page/osx/1/java_home.

java_home --version 1.5+

java_home --arch i386

java_home --datamodel Applets|WebStart|BundledApp|JNI|CommandLine

java_home --xml

java_home --help