2004/01/19 21:12:04
[org.ibex.core.git] / src / org / xwt / Platform.java
index 976a142..2da2387 100644 (file)
@@ -60,7 +60,11 @@ public abstract class Platform {
             }
             
             System.err.println(" " + os_name + " ==> org.xwt.plat." + platform_class);
-            if (platform_class != null) Class.forName("org.xwt.plat." + platform_class).newInstance();
+            try {
+                if (platform_class != null) Class.forName("org.xwt.plat." + platform_class).newInstance();
+            } catch (InstantiationException e) {
+                throw e.getCause();
+            }
 
             String term = Platform.getEnv("TERM");
             Log.color = term != null && term.length() != 0 && !term.equals("cygwin");