From: Panayotis K. <pan...@pa...> - 2010-11-11 15:08:12
|
there is something missing when variables are initialized outsize the constructor. As a minium program to display this error, have a look at this: instead of printing "hello", it prints "null", since this is not initialized. package my.testmem; import org.xmlvm.iphone.UIApplication; import org.xmlvm.iphone.UIApplicationDelegate; public class Main extends UIApplicationDelegate { String test = "hello"; @Override public void applicationDidFinishLaunching(UIApplication app) { System.out.println(test); } public static void main(String[] args) { UIApplication.main(args, null, Main.class); } } |