On Java 9, the configure script fails to automatically detect JAVA_HOME.
java -cp config PrintProperty java.home returns /usr/lib/jvm/java-9-openjdk-amd64, not /usr/lib/jvm/java-8-openjdk-amd64/jre. The script uses dirname to strip the trailing /jre, but actually ends up stripping the path down to /usr/lib/jvm.
Perhaps try both paths? Or strip the "/jre" suffix iff it's there?
On Java 9, the configure script fails to automatically detect
JAVA_HOME
.java -cp config PrintProperty java.home
returns/usr/lib/jvm/java-9-openjdk-amd64
, not/usr/lib/jvm/java-8-openjdk-amd64/jre
. The script usesdirname
to strip the trailing/jre
, but actually ends up stripping the path down to/usr/lib/jvm
.Perhaps try both paths? Or strip the "/jre" suffix iff it's there?