libConsole/Console.java
author Markus Bröker <mbroeker@largo.dyndns.tv>
Thu, 28 May 2009 17:41:18 +0200
changeset 97 f883331a1bf2
parent 83 220d76d0d672
child 134 8325a0fc22cd
permissions -rw-r--r--
alpha_beta ui: removed a redundant line The original print routine was from an open book by galileo computing and the redundant line was introduced there. committer: Markus Bröker <mbroeker@largo.homelinux.org>

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 {
        try {
            System.loadLibrary ("Console");
        } catch (UnsatisfiedLinkError ule) {
            System.err.println (ule.getLocalizedMessage ());
            help ();
        }
    };
}