Search This Blog

JAVA_HOME on Mac OS X

To check where JAVA_HOME is:

/usr/libexec/java_home
or
/usr/libexec/java_home -v 1.6


To export it as env variable

export JAVA_HOME=$(/usr/libexec/java_home)
or
export JAVA_HOME=$(/usr/libexec/java_home -v 1.6)

No comments:

Post a Comment