Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 332529 - NoClassDefFoundError on emulator launch when MIDlet-1 is extended from a library MIDlet
Summary: NoClassDefFoundError on emulator launch when MIDlet-1 is extended from a libr...
Status: RESOLVED FIXED
Alias: None
Product: MTJ
Classification: Tools
Component: MTJ projects (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 1.2   Edit
Assignee: Gorkem Ercan CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 287904 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-12-14 10:07 EST by hrdonka CLA
Modified: 2011-03-21 15:17 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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. ***