Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 332529

Summary: NoClassDefFoundError on emulator launch when MIDlet-1 is extended from a library MIDlet
Product: [Tools] MTJ Reporter: hrdonka <vhrdonka>
Component: MTJ projectsAssignee: Gorkem Ercan <gorkem.ercan>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: gmazzo_65
Version: unspecified   
Target Milestone: 1.2   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description hrdonka CLA 2010-12-14 10:07:53 EST
Build Identifier: 20100917-0705

When running a MIDP application the MIDlet to be run must be extending only this project class or javax.microedition.midlet.MIDlet. When the MIDlet extending a MIDlet fro a different project NoClassDefFoundError is thrown.

Reproducible: Always

Steps to Reproduce:
1. Create MyFirstMidletProject example
2. create a new MyMobileGeneral project with a class MyGeneralMidlet extending javax.microedition.midlet.MIDlet
3. In Java Build Path add the MyMobileGeneral to the list of project
4. In MyFirstMidletProject change "MyFirstMidletClass extends MIDlet" to "MyFirstMidletClass extends MyGeneralMidlet"
Comment 1 Gorkem Ercan CLA 2011-03-21 07:24:31 EDT
There is a bug that prevents the packaging of the referenced projects unless they are exported. As a workaround export the project and it will be part of the packagin and preverification
Comment 2 Gorkem Ercan CLA 2011-03-21 11:13:59 EDT
A fix is released to head. Should become available from the nightly update state http://download.eclipse.org/mtj/updates/nightly/ in a day or so
Comment 3 Gorkem Ercan CLA 2011-03-21 15:17:43 EDT
*** Bug 287904 has been marked as a duplicate of this bug. ***