QR Code Business Card

JAVA_HOME on OS X

I just stumbled upon setting the JAVA_HOME on a remote OS X Server. I tried following the output of whereis. But this was not leading me to the right track folders.

To make things short, just add this to your .profile/shell:

export JAVA_HOME=$(/usr/libexec/java_home)