| Author |
Message |
|
|
Post subject: Runtime error – Imported libraries not included in package
Posted: Aug 10, 2005 - 07:45 AM
|
|
Joined: Aug 10, 2005
Posts: 1
|
|
To anyone that can help me,
I have developed an application in J2ME using Eclipse 3.1.0 and the J2ME Wireless Toolkit 2.2 etc all configured correctly. I am successfully building my MIDlet and emulating the application on the DefaultColourPhone. In one of my classes I have imported some specific class libraries so that I can perform some XML parsing. These are imported as shown below at the top of the file.
import org.kxml.*;
import org.kxml.parser.*;
import org.kxml.parser.XmlParser;
I then go into the Project -> Properties, click on the Libraries tab and have tried including the libraries from an external JAR as well as “Add class folder”. When I added a class folder I created a new directory in the project directory called “lib” and extracted the ZIP file of the library files into this folder. Then going into Eclipse I add the using the “Add class folder” option. This works as it should. Eclipse build’s the application without any errors or warnings and can see the libraries attached to the package. Even under the build Order and Export properties, the kxml libraries are listed.
Yet for some reason, whilst running the emulator and calling the constructor to XmlParser, the application halts and the following error message is displayed in the console window:
java.lang.NoClassDefFoundError: org/kxml/parser/XmlParser
I am lost as to why the build is reporting no errors and Eclipse can see the imported libraries without a problem, but when I run the application I get this message. I have searched high and low without any haven’t found anything explaining why this might be happening.
I also thought that it might help if I posted an image of my project file hierarchy that it might shed some light on this problem.
I would greatly appreciate any information anyone can supply.
Regards
GaNkEd. |
|
|
| |
|
|
|
 |
|
|
Post subject: RE: Runtime error – Imported libraries not included in pac
Posted: Sep 14, 2005 - 07:12 AM
|
|
|
|
|
|
|
 |
|
|
Post subject: Re: Runtime error – Imported libraries not included in pac
Posted: Nov 15, 2005 - 09:48 AM
|
|
|
|
i have the same prolbem and still remain unsolved.
i'm a newbie;can anybody help me more in detail? thanks!
| ganked wrote: | To anyone that can help me,
I have developed an application in J2ME using Eclipse 3.1.0 and the J2ME Wireless Toolkit 2.2 etc all configured correctly. I am successfully building my MIDlet and emulating the application on the DefaultColourPhone. In one of my classes I have imported some specific class libraries so that I can perform some XML parsing. These are imported as shown below at the top of the file.
import org.kxml.*;
import org.kxml.parser.*;
import org.kxml.parser.XmlParser;
I then go into the Project -> Properties, click on the Libraries tab and have tried including the libraries from an external JAR as well as “Add class folder”. When I added a class folder I created a new directory in the project directory called “lib” and extracted the ZIP file of the library files into this folder. Then going into Eclipse I add the using the “Add class folder” option. This works as it should. Eclipse build’s the application without any errors or warnings and can see the libraries attached to the package. Even under the build Order and Export properties, the kxml libraries are listed.
Yet for some reason, whilst running the emulator and calling the constructor to XmlParser, the application halts and the following error message is displayed in the console window:
java.lang.NoClassDefFoundError: org/kxml/parser/XmlParser
I am lost as to why the build is reporting no errors and Eclipse can see the imported libraries without a problem, but when I run the application I get this message. I have searched high and low without any haven’t found anything explaining why this might be happening.
I also thought that it might help if I posted an image of my project file hierarchy that it might shed some light on this problem.
I would greatly appreciate any information anyone can supply.
Regards
GaNkEd. |
|
|
|
| |
|
|
|
 |
|
|
Post subject: RE: Re: Runtime error – Imported libraries not included in
Posted: Jun 05, 2006 - 01:29 AM
|
|
|
|
| I'm having the same problem with a different package (motorola iden api), but the recommended solution isn't simple when you're working in windows (sym-links are out of the question). any other ideas? using eclipse 3.1 and eclipseme 1.5. |
|
|
| |
|
|
|
 |
|
|
Post subject: Problem solved
Posted: Jun 14, 2006 - 12:41 PM
|
|
|
|
Problem solved.
Go to the project properties>Java Build Path>"Order and Export" tab and check the kXML library you added before in the "Libraries" tab. Simple as that.
It worked for me. |
|
|
| |
|
|
|
 |
|
|
Post subject: RE: Problem solved
Posted: Jul 22, 2006 - 08:25 AM
|
|
|
|
| that too doent solve my problem |
|
|
| |
|
|
|
 |
|
|
Post subject: RE: Problem solved
Posted: Jan 03, 2007 - 01:12 PM
|
|
Joined: May 23, 2006
Posts: 5
|
|
| beside checking the library in "order and export", make sure you copy and paste you library as well as you classes to the "verified" folder accordingly... |
|
|
| |
|
|
|
 |
|
|