forked from openkylin/platform_build
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:
parent
5ffee768ea
commit
13b2e19ef2
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue