1 // Regression test for JNI and static initializers.
5 public static class NativeClass
9 System
.out
.println("static initializer 2");
10 System
.loadLibrary("init"); // if it's here, this app doesn't work
13 public static native void printHello();
18 System
.out
.println("static initializer 1");
21 public static void main(String
[] args
)
23 //System.loadLibrary("test"); // if it's here, this app works
24 NativeClass
.printHello();