Skip to content

Commit 1f69284

Browse files
authored
Fix library class version error
1 parent 1ee243c commit 1f69284

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

java/src/processing/mode/java/runner/Runner.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -775,9 +775,9 @@ public static boolean handleCommonErrors(final String exceptionClass,
775775

776776
} else if (exceptionClass.equals("java.lang.UnsupportedClassVersionError")) {
777777
listener.statusError("UnsupportedClassVersionError: A library is using code compiled with an unsupported version of Java.");
778-
err.println("This version of Processing only supports libraries and JAR files compiled for Java 1.8 or earlier.");
779-
err.println("A library used by this sketch was compiled for Java 1.9 or later, ");
780-
err.println("and needs to be recompiled to be compatible with Java 1.8.");
778+
err.println("This version of Processing only supports libraries and JAR files compiled for Java 17 or earlier.");
779+
err.println("A library used by this sketch was compiled for Java 18 or later, ");
780+
err.println("and needs to be recompiled to be compatible with Java 17.");
781781

782782
} else if (exceptionClass.equals("java.lang.NoSuchMethodError") ||
783783
exceptionClass.equals("java.lang.NoSuchFieldError")) {

0 commit comments

Comments
 (0)