javablackberryjava-mejar

jar file built by Eclipse cannot run on BlackBerry


I built a project in Eclipse for my BlackBerry.

The jar cannot run on my BlackBerry. I get the error "907 Invaild JAR Descriptor missing required atrribute:MIDlet-1".

MANIFEST.MF from the Jar file:

Manifest-Version: 1.0
RIM-MIDlet-Flags-1: 193
MIDlet-Vendor: <unknown>
MIDlet-Version: 1.0
MicroEdition-Configuration: CLDC-1.1
MIDlet-1: Co.Beginner,,
Created-By: 1.6.0_19 (Sun Microsystems Inc.)
MIDlet-Jar-URL: contect.jar
MIDlet-Name: contect
MicroEdition-Profile: MIDP-2.0
MIDlet-Description: Get my contect
MIDlet-Jar-Size: 0

Solution

  • It looks like you're using a CLDC app in which case you don't need the JAR file for anything. All you need are the JAD and COD files.