Skip to content

Commit 5247074

Browse files
committed
Linux people are used to confusion and misery
Let them know what's wrong when an UnsatisfiedLinkError hits. This could also be a missing external dependency that library's dynamic library requests, for example.
1 parent ff61107 commit 5247074

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -670,6 +670,9 @@ public static boolean handleCommonErrors(final String exceptionClass,
670670
}
671671
} else if (exceptionClass.equals("java.lang.UnsatisfiedLinkError")) {
672672
listener.statusError("A library used by this sketch is not installed properly.");
673+
if (PApplet.platform == PConstants.LINUX) {
674+
System.out.println(message);
675+
}
673676
err.println("A library relies on native code that's not available.");
674677
err.println("Or only works properly when the sketch is run as a " +
675678
((Platform.getNativeBits() == 32) ? "64-bit" : "32-bit") + " application.");

0 commit comments

Comments
 (0)