24 import java.io.PrintWriter;
31 static protected final PrintWriter out =
new PrintWriter(System.out,
true);
33 static protected final PrintWriter err =
new PrintWriter(System.err,
true);
39 out.println(
"--> JTieTestBase.loadSystemLibrary(String)");
42 out.println(
" " + cls +
" <" + cls.getClassLoader() +
">");
45 out.println(
" loading libary " + name +
" ...");
47 System.loadLibrary(name);
48 }
catch (UnsatisfiedLinkError e) {
51 path = System.getProperty(
"java.library.path");
52 }
catch (Exception ex) {
53 path =
"<exception caught: " + ex.getMessage() +
">";
55 err.println(
"failed loading library '"
56 + name +
"'; java.library.path='" + path +
"'");
58 }
catch (SecurityException e) {
59 err.println(
"failed loading library '"
60 + name +
"'; caught exception: " + e);
63 out.println(
" ... loaded " + name);
66 out.println(
"<-- JTieTestBase.loadSystemLibrary(String)");
69 public abstract void test();