From 2cc601edc3e5181d657dba354b87482aff9a47fa Mon Sep 17 00:00:00 2001 From: shadowislord Date: Tue, 27 Jan 2015 18:00:29 -0500 Subject: [PATCH] NativeLibraryLoader: Don't gobble the exception message when loading via System.loadLibrary() --- .../main/java/com/jme3/system/NativeLibraryLoader.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/jme3-desktop/src/main/java/com/jme3/system/NativeLibraryLoader.java b/jme3-desktop/src/main/java/com/jme3/system/NativeLibraryLoader.java index 1c1bdaa9b..1ea33fd5e 100644 --- a/jme3-desktop/src/main/java/com/jme3/system/NativeLibraryLoader.java +++ b/jme3-desktop/src/main/java/com/jme3/system/NativeLibraryLoader.java @@ -490,11 +490,13 @@ public final class NativeLibraryLoader { if (isRequired) { throw new UnsatisfiedLinkError( "The required native library '" + name + "'" - + " was not found in the classpath via '" + pathInJar + "'"); + + " was not found in the classpath via '" + pathInJar + + "'. Error message: " + e.getMessage()); } else { logger.log(Level.FINE, "The optional native library ''{0}''" + - " was not found in the classpath via ''{1}''", - new Object[]{name, pathInJar}); + " was not found in the classpath via ''{1}''" + + ". Error message: {2}", + new Object[]{name, pathInJar, e.getMessage()}); } }