/** 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 */