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

Help on creating jar and jad files

 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • 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
 
Mark Herschberg
Sheriff
Posts: 6037
  • Mark post as helpful
  • send pies
  • 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
 
    Bookmark Topic Watch Topic
  • New Topic