2003/09/07 03:04:31
[org.ibex.core.git] / src / org / xwt / Platform.java
index 671b002..8ee8b20 100644 (file)
@@ -211,7 +211,15 @@ public class Platform {
 
     /** returns an InputStream to the builtin xwar */
     protected InputStream _getBuiltinInputStream() {
-       return new ByteArrayInputStream(org.bouncycastle.util.encoders.Base64.decode(org.xwt.Builtin.encoded));
+       try {
+           Class c = Class.forName("org.xwt.Builtin");
+           Field f = c.getField("encoded");
+           Object o = f.get(null);
+           return new ByteArrayInputStream(org.bouncycastle.util.encoders.Base64.decode((String)o));
+       } catch (Exception e) {
+           Log.log(this, e);
+           return null;
+       }
     }
 
     /** returns the value of the environment variable key, or null if no such key exists */