2004/01/19 05:51:38
[org.ibex.core.git] / src / org / xwt / Main.java
index 2bfb7d8..533e763 100644 (file)
@@ -5,14 +5,18 @@ import java.net.*;
 import java.util.*;
 import java.io.*;
 import java.awt.*;
-import org.bouncycastle.util.encoders.Base64;
 import org.xwt.js.*;
 import org.xwt.util.*;
 import org.xwt.translators.*;
+import org.xwt.plat.*;
+import org.bouncycastle.util.encoders.Base64;
 
 /** Entry point for the XWT Engine; handles splash screen, initial xwar loading, and argument processing */
 public class Main {
 
+    // to prevent GCJ from dropping these classes
+    private static final Class[] keep = new Class[] { GCJ.class, Linux.class, Solaris.class, Darwin.class, Win32.class };
+
     /**
      *  FEATURE: this should be implemented using self-emulation
      *  Used for security checks. If this is null, it means that only