--- old/src/share/classes/java/lang/System.java 2012-02-27 16:58:39.000000000 -0800 +++ new/src/share/classes/java/lang/System.java 2012-02-27 16:58:39.000000000 -0800 @@ -1168,11 +1168,6 @@ // classes are used. sun.misc.VM.initializeOSEnvironment(); - // Subsystems that are invoked during initialization can invoke - // sun.misc.VM.isBooted() in order to avoid doing things that should - // wait until the application class loader has been set up. - sun.misc.VM.booted(); - // The main thread is not added to its thread group in the same // way as other threads; we must do it ourselves here. Thread current = Thread.currentThread(); @@ -1180,6 +1175,11 @@ // register shared secrets setJavaLangAccess(); + + // Subsystems that are invoked during initialization can invoke + // sun.misc.VM.isBooted() in order to avoid doing things that should + // wait until the application class loader has been set up. + sun.misc.VM.booted(); } private static void setJavaLangAccess() {