Files
ports/java/sigar/files/patch-bindings_java_hyperic__jni_jni-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

12 lines
502 B
XML

--- bindings/java/hyperic_jni/jni-build.xml.orig 2021-07-15 16:45:22 UTC
+++ bindings/java/hyperic_jni/jni-build.xml
@@ -161,7 +161,7 @@ -->
<echo message="jni.src=${jni.src}, jni.jdk.os=${jni.jdk.os}, ${sun.arch.data.model}-bit"/>
<javac srcdir="${jni.src.java}" destdir="${build}/classes" debug="true"
- source="1.6" target="1.6"
+ source="8" target="8"
includes="org/hyperic/jni/*.java"/>
<taskdef name="libarch" classname="org.hyperic.jni.ArchNameTask">