10-22-2008 12:29 PM
I used sucessfully kxml2 (kxml2-min-2.3.0.jar) with JDE 4.6, but now I am trying to use it with JDE 4.1 and have a problem.
For the test i have a very simple midlet, does not using any methods, just this line :
KXmlParser parser = new KXmlParser();
OK, if I add the jar in Project properties -> build -> imported jar files, I can build without errors, but when attempt to start the midlet, I received the error message :
Module has verification errors
If I add the jar in Workspace properties -> imported jar files instead, I have the same situation
If I add the jar as "add a new file" to the project, when I try to build, I got the error message :
missing stack map at label 79
I did preverify , including unpacking the jar, preverify each file and pack it again. Still I have the same message, when try to build.
FInally, I tried to create a new project in the same workspace as library, following the instructions here :
When I try to build the second project (only the jar) as library, I have again the message
missing stack map at label 79.
preverify again, same situation.
on the dev pc, I have jdk1.6 (not sure does it matter).
Any ideas how I can use the kxml2 jar in this situation?
10-22-2008 01:32 PM
The source of problem is incompatible binary structure of jar file.
Try to add source files of kxml2 to your project and compile them.
12-08-2008 11:09 AM