File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java Micro Edition and the fly likes Help on creating jar and jad files Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Mobile » Java Micro Edition
Reply locked New topic
Author

Help on creating jar and jad files

Anonymous
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
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
"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
 
 
subject: Help on creating jar and jad files
 
Threads others viewed
Not able to Receive sms messages in my emulator over port 50000 but able to send
Invalid Jar File
Unable to install on Nokia6670
Can not converte jad to prc files
.jar to .prc problems please help.
developer file tools