Java_home is a lot of applications need to configure things, I installed a lot, every time to re-surf the internet to find out how to look for Java_home, here the method of the Mac summed up.
It is convenient to find Java_home on Mac, run a script to get the result. Enter the path First:
Then run a script called "Java_home":
The command line will automatically jump out of the Java installation path on your Mac.
View and set Java_home under Mac OS X