• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

ERROR: Jar files and manifest probs

 
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
ranger
Posts: 17347
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Posts: 17347
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
oh..
Thanks alot for the help, Mark.
 
reply
    Bookmark Topic Watch Topic
  • New Topic