Skip to content

Commit

Permalink
Update java.lang.UnsupportedClassVersionError message
Browse files Browse the repository at this point in the history
This came up in #5457
  • Loading branch information
gohai committed Mar 31, 2018
1 parent 49f7933 commit 7b273c8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions java/src/processing/mode/java/runner/Runner.java
Original file line number Diff line number Diff line change
Expand Up @@ -766,9 +766,9 @@ public static boolean handleCommonErrors(final String exceptionClass,

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

} else if (exceptionClass.equals("java.lang.NoSuchMethodError") ||
exceptionClass.equals("java.lang.NoSuchFieldError")) {
Expand Down

0 comments on commit 7b273c8

Please sign in to comment.