2004/01/19 21:10:01
[org.ibex.core.git] / src / org / xwt / Platform.java
index 8c4df6e..976a142 100644 (file)
@@ -32,14 +32,12 @@ public abstract class Platform {
 
     // VM Detection Logic /////////////////////////////////////////////////////////////////////
 
-    public static void forceLoad() { }                 ///< do-nothing method that forces &lt;clinit&gt; to run
-
     // If you create a new subclass of Platform, you should add logic
     // here to detect it. Do not reference your class directly -- use
     // reflection.
 
-    static {
-        System.err.println("Detecting JVM...");
+    public static void forceLoad() {
+        System.err.print("Detecting JVM...");
         try {
             String vendor = System.getProperty("java.vendor", "");
             String version = System.getProperty("java.version", "");
@@ -60,7 +58,8 @@ public abstract class Platform {
                 Log.error(Platform.class, "Unable to detect JVM");
                 criticalAbort("Unable to detect JVM");
             }
-
+            
+            System.err.println(" " + os_name + " ==> org.xwt.plat." + platform_class);
             if (platform_class != null) Class.forName("org.xwt.plat." + platform_class).newInstance();
 
             String term = Platform.getEnv("TERM");