Bug#874643: Mis-detects Java 9 at "runtime"
Chris West
solo-debianbugs at goeswhere.com
Fri Sep 8 11:58:54 UTC 2017
Package: libgluegen2-build-java
Version: 2.3.2-5
Severity: normal
User: debian-java at lists.debian.org
Usertags: default-java9
This package is used while building other packages. It contains some
build helper scripts. These scripts fail to detect Java 9 correctly, so
error out, breaking the build of other packages.
...
<fail message="Unsupported Target Java version (sourcelevel):
${target.sourcelevel}. Make sure that the version of the Java compiler
is 1.6 (6.0) or greater.">
<contains string="${target.sourcelevel}" substring="1.9"
casesensitive="false" />
...
The value has been changed to 9, not 1.9.
Fix might look like:
https://ssl.icu-project.org/trac/attachment/ticket/13330/icu4j.diff
..or see if someone has put a better solution on the wiki:
https://wiki.debian.org/Java/Java9Pitfalls
Build log from an example broken package, libjogl2-java:
jogamp.env.validation:
[echo] ant.version Apache Ant(TM) version 1.9.9 compiled on June 29 2017
[echo] ant.java.version 9
[echo] java.version 9-Debian
[echo] java.home /usr/lib/jvm/java-9-openjdk-amd64
[echo] jvmJava.exe /usr/lib/jvm/java-9-openjdk-amd64/bin/java
Property "env.JAVA7_EXE" has not been set
Property "env.JAVA7_EXE" has not been set
Property "jvmJava7.exe" has not been set
[echo] jvmJava7.exe ${jvmJava7.exe}
BUILD FAILED
/usr/share/gluegen2/make/jogamp-env.xml:48: Unsupported Java version: 9. Make sure that the version of the Java compiler is 1.6 (6.0) or greater.
at org.apache.tools.ant.taskdefs.Exit.execute(Exit.java:164)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:293)
Cheers,
Chris.
More information about the pkg-java-maintainers
mailing list