Files
ports/java/sigar/files/patch-bindings_java_build.xml
T
Ronald Klop 39650b669d java/sigar: fix running with openjdk8
Running Cassandra 3 gave:
java.lang.UnsupportedClassVersionError: org/hyperic/sigar/SigarException has been compiled by a more recent version of the Java Runtime (class file version 65.0), this version of the Java Runtime only recognizes class file versions up to 52.0

PR:	294323
Reported-by:	Lapo Luchini
Fixes:	f3a12dc72a "fix compilation with jdk21"
MFH:	2026Q2
Pointy-hat:	to me
2026-04-22 09:41:35 +02:00

21 lines
654 B
XML

--- bindings/java/build.xml.orig 2021-07-15 16:45:22 UTC
+++ bindings/java/build.xml
@@ -94,7 +94,7 @@
<target name="compile">
<mkdir dir="${build}/classes"/>
<javac destdir="${build}/classes"
- source="1.6" target="1.6"
+ source="8" target="8"
sourcepath=""
debug="true"
classpathref="libjars">
@@ -109,7 +109,7 @@
<target name="compile-tests">
<mkdir dir="${build}/classes"/>
<javac destdir="${build}/classes"
- source="1.6" target="1.6"
+ source="8" target="8"
sourcepath=""
debug="true"
classpathref="testjars">