// VM Detection Logic /////////////////////////////////////////////////////////////////////
- public static void forceLoad() { } ///< do-nothing method that forces <clinit> 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", "");
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");