mirror of
https://github.com/autc04/Retro68.git
synced 2024-09-10 03:54:48 +00:00
26 lines
571 B
Java
26 lines
571 B
Java
import java.io.File;
|
|
import java.net.*;
|
|
import java.lang.reflect.Method;
|
|
|
|
public class pr29812
|
|
{
|
|
static {
|
|
System.loadLibrary("pr29812");
|
|
}
|
|
|
|
public static native void baseN();
|
|
|
|
public static void main(String[] args) throws Throwable
|
|
{
|
|
// Make sure JNI environment is initialized.
|
|
baseN();
|
|
|
|
File jar = new File(args[0]);
|
|
URL u = jar.toURL();
|
|
URLClassLoader uc = new URLClassLoader(new URL[] { u });
|
|
Class k = uc.loadClass("pr29812_injar");
|
|
Method m = k.getMethod("doit", (Class[]) null);
|
|
m.invoke(null, (Object[]) null);
|
|
}
|
|
}
|