Hello,

i do not think that the JAR must be named in the Manifest. Eclipse just 
adds the files contained in the external JAR to the newly deployed JAR.

Where are you running your Midlet? On the emulator or on a real phone? 
Maybe you should use try{} catch(Error err) in your startApp()-Method to 
trace the Error and find out, which class was not found.

Did you try not to include the external JAR but the whole Project? In 
the Projekt-Properties you can add that with the Projects tab. Then you 
should receive a error if one class is missing.

Regards,
Markus

Jean-Pierre PLANAS schrieb:
> Hello
> 
>  
> 
> I have the same problem that the following thread :
> 
> I use eclipseME 1.6.8 with eclipse 3.2.2 and jdk 6u1.
> 
>  
> 
> I have created 2 projects (A and B).
> 
> Package of  project A is used in project B.
> 
> In project B, I setup the use of en external jar file from A project. I 
> have checked the checkbox in tab “Order and export”…
> 
>  
> 
> When I run application B, I have “Uncaught exception 
> java/lang/NoClassDefFoundError”
> 
> When I unjar B.jar file, I see :
> 
> - The class is contained in my B.jar file…
> 
> - There is no reference to A in Manifest.mf.
> 
>  
> 
> I don’t understand why.
> 
> If someone know the solution, could you explain me please ?
> 
>  
> 
> How is generated the file Manifest.mf ?
> 
>  
> 
> Jean-Pierre
> 
>  
> 
>>  Hi Craig,
> 
>>  thanx for reply..... well, yes and no.. i kept on having different errors
> 
>>  (java/lang/Verify).. so i moved the external classes in my j2me (it was
> 
>>  still one of my packages..so i had access to sources...).
> 
>>  i will re-try it again as soon as my app is finished...
> 
>> 
> 
>>  thanks and regards
> 
>>  Marco
> 
>> 
> 
>>  On 11/19/06, Craig Setera <[EMAIL PROTECTED]> wrote:
> 
>>  >
> 
>>  > Marco,
> 
>>  >
> 
>>  > This sounds odd. Have you had any luck getting this going since you
> 
>>  > wrote this?
> 
>>  >
> 
>>  > Craig
> 
>>  >
> 
>>  > Marco Mistroni wrote:
> 
>>  > > Hi all,
> 
>>  > > i am using eclipseME to develop J2ME applications./
> 
>>  > > I have used J2ME before, and in the past it was enough to put external
> 
>>  > > jar libraries in the lib directory of your J2ME application.
> 
>>  > > Now, i am using EclipseME to compile/preverify/package my j2me
> 
>>  > > application, and when the application runs i get
> 
>>  > >
> 
>>  > > Uncaught exception java/lang/NoClassDefFoundError:
> 
>>  > > com/mm/j2me/core/ApplicationException.
> 
>>  > >
> 
>>  > > That class is contained in myjar1.jar,, which is contianed in the lib
> 
>>  > > directory of my j2me application.
> 
>>  > > In EclplseME, i have selecte din Properties/Java Build Path
> 
>>  > > myjar1.jar as an External library, and i have marked the checkbox next
> 
>>  > > to it in 'Order and Export' tab.
> 
>>  > >
> 
>>  > > when i compile app using EclipseME, i can see myjar1.jar in the
> 
>>  > > verified\libs.
> 
>>  > >
> 
>>  > > I still could not understand why the app was not finding the class,
> 
>>  > > everything seemed in order.
> 
>>  > > So, i tried to unjar my j2me jar of the bin directory..the
> 
>>  > > Manifest.mf was not referrencing any external jars..
> 
>>  > >
> 
>>  > > i still can't figure out why i keep on getting ClassNotFound
> 
>>  > > exception.....
> 
>>  > >
> 
>>  > > can anyone help me out?
> 
>>  > >
> 
>>  > > thanks in advance and regards
> 
>>  > > Marco
> 
>  
> 
>  
> 
> 
> ------------------------------------------------------------------------
> 
> -------------------------------------------------------------------------
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Eclipseme-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/eclipseme-users

-- 

*********************************
[EMAIL PROTECTED]
http://www.psitronic.de

psitronic IT-Solutions
Markus Sinner
W-Rathenau-Str. 14 - 68642 Bürstadt
Tel.: (+49)6206 / 963513
Fax:  (+49)6206 / 963514

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Eclipseme-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/eclipseme-users

Reply via email to