corda/classpath/java/lang/Runtime.java

36 lines
660 B
Java
Raw Normal View History

package java.lang;
public class Runtime {
private static final Runtime instance = new Runtime();
private Runtime() { }
public static Runtime getRuntime() {
return instance;
}
public void load(String path) {
if (path != null) {
load(path, false);
} else {
throw new NullPointerException();
}
}
public void loadLibrary(String path) {
if (path != null) {
load(path, true);
} else {
throw new NullPointerException();
}
}
private static native void load(String name, boolean mapName);
public native void gc();
public native void exit(int code);
2007-07-27 02:39:53 +00:00
public native long freeMemory();
}