3 import java
.lang
.reflect
.Method
;
8 System
.loadLibrary("pr29812");
11 public static native void baseN();
13 public static void main(String
[] args
) throws Throwable
15 // Make sure JNI environment is initialized.
18 File jar
= new File(args
[0]);
20 URLClassLoader uc
= new URLClassLoader(new URL
[] { u
});
21 Class k
= uc
.loadClass("pr29812_injar");
22 Method m
= k
.getMethod("doit", (Class
[]) null);
23 m
.invoke(null, (Object
[]) null);