X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=src%2Forg%2Fxwt%2FPlatform.java;h=0a3248151669a95c8b2c053985b3406ba2595cee;hb=312ed73b9a5ea80abf4da3b41939357be962d7a2;hp=dc706f552745d7e3601986db4b4ca3c1fbbfac14;hpb=e53aa97611d8b29354ca1929c3bef4acb1c259fb;p=org.ibex.core.git diff --git a/src/org/xwt/Platform.java b/src/org/xwt/Platform.java index dc706f5..0a32481 100644 --- a/src/org/xwt/Platform.java +++ b/src/org/xwt/Platform.java @@ -214,9 +214,13 @@ public class Platform { try { String os = System.getProperty("os.name").toLowerCase(); Process p; - if (os.indexOf("windows 9") > -1) { + if (os.indexOf("windows 9") != -1 || os.indexOf("windows me") != -1) { + // hack -- jdk1.2/1.3 on Win32 pop open an ugly DOS box; 1.4 does not + if (platform.getClass().getName().endsWith("Java12")) return null; p = Runtime.getRuntime().exec("command.com /c set"); - } else if ( (os.indexOf("nt") > -1) || (os.indexOf("windows 2000") > -1) ) { + } else if (os.indexOf("windows") > -1) { + // hack -- jdk1.2/1.3 on Win32 pop open an ugly DOS box; 1.4 does not + if (platform.getClass().getName().endsWith("Java12")) return null; p = Runtime.getRuntime().exec("cmd.exe /c set"); } else { p = Runtime.getRuntime().exec("env");