Skip to content

Commit

Permalink
envsetup: Always look up JAVA_HOME path
Browse files Browse the repository at this point in the history
Change-Id: I8b0641eb107cd095079bb17f92e99730f532fda7
  • Loading branch information
darkeyes84 authored and Gerrit Code Review committed Mar 31, 2016
1 parent 3ef1982 commit bc9ae3d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion envsetup.sh
Expand Up @@ -2404,7 +2404,7 @@ function set_java_home() {
export JAVA_HOME=$(/usr/libexec/java_home -v 1.7)
;;
*)
export JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64
export JAVA_HOME=$(dirname $(dirname $(dirname $(readlink -f $(which java)))))
;;
esac
Expand Down

0 comments on commit bc9ae3d

Please sign in to comment.