From eeaa44e1e73a0551150ee101b1039efa57143ac0 Mon Sep 17 00:00:00 2001 From: md_5 Date: Sun, 8 Feb 2015 08:08:20 +1100 Subject: [PATCH] #1362: Tighter catch on errors in native lib compilation. --- native/src/main/java/net/md_5/bungee/jni/NativeCode.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/native/src/main/java/net/md_5/bungee/jni/NativeCode.java b/native/src/main/java/net/md_5/bungee/jni/NativeCode.java index 8fe93b29..7419dc97 100644 --- a/native/src/main/java/net/md_5/bungee/jni/NativeCode.java +++ b/native/src/main/java/net/md_5/bungee/jni/NativeCode.java @@ -70,6 +70,9 @@ public final class NativeCode } catch ( IOException ex ) { // Can't write to tmp? + } catch ( UnsatisfiedLinkError ex ) + { + System.out.println( "Could not load native library: " + ex.getMessage() ); } } }