Skip to content

Commit 62b73ed

Browse files
committed
Update java.lang.UnsupportedClassVersionError message
This came up in #5457
1 parent 189c007 commit 62b73ed

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
@@ -766,9 +766,9 @@ public static boolean handleCommonErrors(final String exceptionClass,
766766

767767
} else if (exceptionClass.equals("java.lang.UnsupportedClassVersionError")) {
768768
listener.statusError("UnsupportedClassVersionError: A library is using code compiled with an unsupported version of Java.");
769-
err.println("This version of Processing only supports libraries and JAR files compiled for Java 1.6 or earlier.");
770-
err.println("A library used by this sketch was compiled for Java 1.7 or later, ");
771-
err.println("and needs to be recompiled to be compatible with Java 1.6.");
769+
err.println("This version of Processing only supports libraries and JAR files compiled for Java 1.8 or earlier.");
770+
err.println("A library used by this sketch was compiled for Java 1.9 or later, ");
771+
err.println("and needs to be recompiled to be compatible with Java 1.8.");
772772

773773
} else if (exceptionClass.equals("java.lang.NoSuchMethodError") ||
774774
exceptionClass.equals("java.lang.NoSuchFieldError")) {

0 commit comments

Comments
 (0)