Fix for JAVA_HOME variable in OS X Yosemite

In case you upgraded to OS X Yosemite and your JAVA_HOME variable in bash_profile no longer works, change/add the following:

export JAVA_HOME=`/usr/libexec/java_home -v 1.7`

Then, run source ~/.bash_profile and it should work from there.

Add a Comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.