"Project {0} has to have a jad file file if it exports a mildlet jar" error appears in BlackBerry Java Plug-in for Eclipse
Summary
This article applies to the following:
- BlackBerry® Java® Plug-in for Eclipse® version 1.1.2
- BlackBerry® Java® Plug-in for Eclipse® version 1.3.0
Description
Problem
The BlackBerry Java Plug-in for Eclipse reports the following error when building an application that contains a library Java® Archive (JAR) file.
Project {0} has to have a jad file file if it exports a mildlet jar
Cause
The BlackBerry Java Plug-in for Eclipse identifies the library JAR file as a MIDlet application instead of a library JAR file.
Resolution
Upgrade to the BlackBerry Java Plug-in for Eclipse 1.5.0 or later.
Workaround
Remove the following line from the manifest file of the library JAR file:
MicroEdition-Profile- MIDP-2.0

