Class stringClass = String.class;
  public static void main(String args[])     throws NoSuchMethodException, NoSuchFieldException  {    System.loadLibrary("JNI12");    if (args.length != 0) {      if (args[0].equals("-quiet")) {        verbose = false;                setVerboseOff();      }             }    Object returnObj;    // Reflected Methods        Class stringClass = String.class;    Class myClass =JNI12.class;        Method dummyM = myClass.getMethod("dummyFunc", new Class[0]);    returnObj = testReflectedMethods(myClass, dummyM);    checkTest(0, (returnObj.equals(dummyM)), "ReflectedMethods");    Field dummyF = myClass.getField("dummyFld");        returnObj = testReflectedFields(myClass, dummyF);    checkTest(0, (returnObj.equals(dummyF)), "ReflectedFields & NewLocalRef");    Object heldGlobal = testGlobalCreationAndReturn(dummyM);    if (heldGlobal == null) {      if (verbose )        System.err.println("testGlobalCreationAndReturn returned null!");      heldGlobal = new Object();    }    if (verbose) {      System.out.println("heldGlobal = " + heldGlobal.toString());    }    checkTest(0, (heldGlobal != null && heldGlobal.equals(dummyM)), "GlobalCreationAndReturn");    int rint = testGlobalPersistenceAndDestruction(heldGlobal);    checkTest(rint, true, "GlobalPersistenceAndDestruction");    Object heldWeak = testWeakCreationAndReturn(dummyM);    if (heldWeak == null) {      if (verbose )        System.err.println("testWeakCreationAndReturn returned null!");      heldWeak = new Object();    }    if (verbose) {      System.out.println("heldWeak = " + heldWeak.toString());    }    checkTest(0, (heldWeak != null && heldWeak.equals(dummyM)), "WeakCreationAndReturn");    rint = testWeakPersistenceAndDestruction(heldWeak);    checkTest(rint, true, "WeakPersistenceAndDestruction");    // Summarize    if (allTestPass)      System.out.println("PASS: JNI_12");    else       System.out.println("FAIL: JNI_12");  }