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
Joined: Dec 04, 2000
Posts: 6035
posted
0
"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.