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.
This commit is contained in:
gohai
2015-08-01 09:32:36 +02:00
parent 6315a2f3da
commit 1372fe2ce9

View File

@@ -670,6 +670,9 @@ public class Runner implements MessageConsumer {
}
} else if (exceptionClass.equals("java.lang.UnsatisfiedLinkError")) {
listener.statusError("A library used by this sketch is not installed properly.");
if (PApplet.platform == PConstants.LINUX) {
System.out.println(message);
}
err.println("A library relies on native code that's not available.");
err.println("Or only works properly when the sketch is run as a " +
((Platform.getNativeBits() == 32) ? "64-bit" : "32-bit") + " application.");