Use java_home to determine jdk location.

Specifying the major version rather than hard coding
to a minor version.

Change-Id: Ieccec98c1b41e3eb7f512bcebc83f6034d634862
This commit is contained in:
Jason Parks 2014-04-28 13:32:10 -05:00
parent 5ffee768ea
commit 13b2e19ef2
1 changed files with 1 additions and 1 deletions

View File

@ -1407,7 +1407,7 @@ function set_java_home() {
else
case `uname -s` in
Darwin)
export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.7.0_51.jdk/Contents/Home
export JAVA_HOME=$(/usr/libexec/java_home -v 1.7)
;;
*)
export JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64