libConsole/Console.java
changeset 55 2a20d0184041
parent 49 77094ec383cf
child 83 220d76d0d672
--- a/libConsole/Console.java
+++ b/libConsole/Console.java
@@ -1,6 +1,21 @@
 public class Console {
     public static native int getch ();
+    private static void help () {
+        String p = System.getProperty ("java.library.path");
+        String[] msg = p.split (":");
+        System.err.printf ("Console Error:\n");
+
+        for (int i = 0; i < msg.length; i++)
+            System.err.printf ("\t%s\n", msg[i]);
+        System.exit (-1);
+    };
+
     static {
-        System.loadLibrary ("Console");
-    }
+        try {
+            System.loadLibrary ("Console");
+        } catch (UnsatisfiedLinkError ule) {
+            System.err.println (ule.getLocalizedMessage ());
+            help ();
+        }
+    };
 }