Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Unverified Commit 7f080163 authored by Keith Mok's avatar Keith Mok Committed by Michael Bestas
Browse files

Revert "envsetup: Always look up JAVA_HOME path"

This breaks, if we have both jdk7 and jdk8 installed on same machine.

This reverts commit 9d59c59a

Change-Id: Id0482d130d5306e797adfeeaeb2efbd1e25aa3ee
parent 9d59c59a
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -2486,7 +2486,7 @@ function set_java_home() {
                export JAVA_HOME=$(/usr/libexec/java_home -v 1.7)
                ;;
            *)
                export JAVA_HOME=$(dirname $(dirname $(dirname $(readlink -f $(which java)))))
                export JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64
                ;;
        esac
      else
@@ -2495,7 +2495,7 @@ function set_java_home() {
                export JAVA_HOME=$(/usr/libexec/java_home -v 1.8)
                ;;
            *)
                export JAVA_HOME=$(dirname $(dirname $(dirname $(readlink -f $(which java)))))
                export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64
                ;;
        esac
      fi