Targeting Java version 8 in our builds now, in part to be compatible with latest Jpype in python

This commit is contained in:
Joseph Lizier 2025-10-16 09:17:00 +11:00
parent cb12914e7a
commit fea2cb4bfa
1 changed files with 7 additions and 7 deletions

View File

@ -43,17 +43,17 @@
<!-- Compile the java toolkit -->
<target name="compile" depends="init" description="compile the source">
<!-- Compile to Java 7 to provide compatibility for users with older JREs.
<!-- Compile to Java 8 to provide compatibility for users with older JREs.
Caveat: The flags here only check the language compatibility, but
may still use newer libraries which may cause issues for users with JDK 7.
Indeed, one gets the warning: "bootstrap class path not set in conjunction with -source 1.7"
may still use newer libraries which may cause issues for users with JDK 8.
Indeed, one gets the warning: "bootstrap class path not set in conjunction with -source 1.8"
To fix this, one would use the bootstrap classpath to point our JDK to an rt.jar
for Java 7.
At this stage, I'm sure I'm not using new library calls from Java 8+, so we can
for Java 8.
At this stage, I'm sure I'm not using new library calls from Java 9+, so we can
ignore the warning, and I don't want to bother installing newer Java just to compile
like this. I'll endeavour not to use JDK 8 libraries so as not to cause
like this. I'll endeavour not to use JDK 9+ libraries so as not to cause
any issues here ... -->
<javac srcdir="${src}" destdir="${bin}" includeAntRuntime="false" target="1.7" source="1.7" encoding="UTF8">
<javac srcdir="${src}" destdir="${bin}" includeAntRuntime="false" target="1.8" source="1.8" encoding="UTF8">
<classpath refid="apache-classpath"/>
</javac>