Wednesday, June 4, 2014

Set JAVA_HOME on OS X

Add on line in  ~/.profile


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

Save and quit.

** "/usr/libexec/java_home" points to Java home which is being used now if there are multiple JDKs installed.

No comments:

Post a Comment