J
John Goche
Hello,
Upon compiling and running a MIDlet with the
Sun Java Wireless Toolkit 2.3 Beta I end up
getting the following run time error in the
simulator after I launch the app in the
simulator:
Settings updated
Project settings saved
Project settings saved
Building "Foo"
Build complete
Running with storage root DefaultColorPhone
Running with locale: English_United States.1252
Unable to create MIDlet null
java.lang.NullPointerException
at com.sun.midp.midlet.MIDletState.createMIDlet(+29)
at com.sun.midp.midlet.Selector.run(+22)
This problem was solved as follows:
Project -> Settings -> Midlets -> Edit:
Since my MIDlet is part of a package,
in the "Class" field, I specify the full
oath to the MIDlet as follows:
In the "Class" field, which is left blank
by the Sun WTK, since my MIDlet is
part of a package, I specify the full
path to the MIDlet as follows:
com.foo.bar.Foo
This fixes the problem,
JG
Upon compiling and running a MIDlet with the
Sun Java Wireless Toolkit 2.3 Beta I end up
getting the following run time error in the
simulator after I launch the app in the
simulator:
Settings updated
Project settings saved
Project settings saved
Building "Foo"
Build complete
Running with storage root DefaultColorPhone
Running with locale: English_United States.1252
Unable to create MIDlet null
java.lang.NullPointerException
at com.sun.midp.midlet.MIDletState.createMIDlet(+29)
at com.sun.midp.midlet.Selector.run(+22)
This problem was solved as follows:
Project -> Settings -> Midlets -> Edit:
Since my MIDlet is part of a package,
in the "Class" field, I specify the full
oath to the MIDlet as follows:
In the "Class" field, which is left blank
by the Sun WTK, since my MIDlet is
part of a package, I specify the full
path to the MIDlet as follows:
com.foo.bar.Foo
This fixes the problem,
JG