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
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

Help on creating jar and jad files

 
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
Can someone tell me exactly how do I create jar and jad files for my midlet. I created a jar file with the command
jar cmf BatNavalManifest.txt BatNaval.jar preverified-temp\*
The file BatNavalManifest.txt contains the following:
Manifest-Version: 1.0
MIDlet-Name: BatalhaNavalMidlet
MIDlet-1: BatalhaNavalMidlet
MIDlet-Version: 1.0
MIDlet-Vendor: Shortcut
MicroEdition-Configuration: CLDC-1.0
MicroEdition-Profile: MIDP-1.0
The jad file is called BatNaval.jad and contains the following:
MIDlet-1: BatalhaNavalMidlet
MIDlet-Jar-Size: 38818
MIDlet-Jar-URL: BatNaval.jar
MIDlet-Name: BatalhaNavalMidlet
MIDlet-Vendor: Shortcut
MIDlet-Version: 1.0
But when I try to run it, it gives a java/lang/NullPointerException
If I run it directly from the main class it runs ok.
Can anyone tell me what am I doing wrong?
S�nia
 
Author
Posts: 6055
8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
"S�nia",
PROPER NAMES ARE NOW REQUIRED
Please look carefully at official naming policy at javaranch & reregister yourself with proper first & last name, with a space between them. Please adhere to official naming policy & help maintain the decorum of the forum. The naming policy can be found at http://www.javaranch.com/name.jsp
Topics posted by people with invalid names will be closed. Please register with a new name and repost your topic.

--Mark
 
Warning! Way too comfortable! Do not sit! Try reading this tiny ad instead:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
    Bookmark Topic Watch Topic
  • New Topic