This week's book giveaway is in the Cloud/Virtualization forum.
We're giving away four copies of Pipeline as Code and have Mohamed Labouardy on-line!
See this thread for details.
Win a copy of Pipeline as Code this week in the Cloud/Virtualization forum!
    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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Rob Spoor
  • Henry Wong
  • Liutauras Vilda
Saloon Keepers:
  • Tim Moores
  • Carey Brown
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
Bartenders:
  • Frits Walraven
  • Himai Minh
  • Jj Roberts

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
 
Without subsidies, chem-ag food costs four times more than organic. Or this tiny ad:
SKIP - a book about connecting industrious people with elderly land owners
https://coderanch.com/t/skip-book
    Bookmark Topic Watch Topic
  • New Topic