add a bunch of classes to classpath and flesh out a few existing ones

This commit is contained in:
Joel Dice
2007-07-21 11:50:26 -06:00
parent 108f8d7bc0
commit 48226f988c
33 changed files with 475 additions and 50 deletions

View File

@ -11,11 +11,19 @@ public abstract class System {
public static native void arraycopy(Object src, int srcOffset, Object dst,
int dstOffset, int length);
public static native void loadLibrary(String name);
public static native String getProperty(String name);
public static native void gc();
public static void loadLibrary(String name) {
Runtime.getRuntime().loadLibrary(name);
}
public static void gc() {
Runtime.getRuntime().gc();
}
public static void exit(int code) {
Runtime.getRuntime().exit(code);
}
public static class Output {
public synchronized native void print(String s);