Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

ERROR: Jar files and manifest probs

 
Ling Min Lee
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have these errors codes showing out on KToolBar. It can be built, but just cant be run...
Any advice please?

startApp threw an Exception

java.lang.NullPointerException

java.lang.NullPointerException

at login.startApp(+8)

at javax.microedition.midlet.MIDletProxy.startApp(+7)

at com.sun.midp.midlet.Scheduler.schedule(+266)

at com.sun.midp.main.Main.runLocalClass(+28)

at com.sun.midp.main.Main.main(+116)

Execution completed.

450023 bytecodes executed

20 thread switches

487 classes in the system (including system classes)

2809 dynamic objects allocated (86520 bytes)

4 garbage collections (61756 bytes collected)
[ September 14, 2004: Message edited by: Ling Min Lee ]
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well at line 8 you have a NullPointerException, which means you are calling a method on an object that doesn't exist.

It might help if you posted the code in your startApp method.

Remember to use the CODE tag, which can be created by selecting the CODE button under the add reply button. This will keep your indentation and formatting.

Mark
 
Ling Min Lee
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you for replying!!!
But we realised our mistakes and managed to debug it already. Thanks again!!

One more impt question:
How do i jar it? because i am now trying to transfer it to a Sony Ericsson mobile phone and it keeps saying 'invalid manifest file' and i cant install it..

i jarred in command prompt (jar cvf login.jar *.class *.png)
Please reply ASAP. Deadline is in 5 hours..
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well, I always jar my mobile applications using the Wireless Toolkit. It can create the JAD file and the Jar file. As far as provisioning an actual phone, I haven't bought my J2ME enabled phone yet.

Mark
 
Ling Min Lee
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
oh..
Thanks alot for the help, Mark.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic