Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
Developer
tonybse
Posts: 61
Registered: ‎09-29-2008
My Device: Not Specified

using kxml2 in JDE 4.1 ?

Hello,

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 :

http://www.blackberryforums.com/developer-forum/33039-import-external-jar-files-jde.html

 

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?

 

10x,

Tony

 

 

 

Please use plain text.
Developer
rafo
Posts: 507
Registered: ‎07-15-2008
My Device: Not Specified

Re: using kxml2 in JDE 4.1 ?

The source of problem is incompatible binary structure of jar file.

 

Try to add source files of kxml2 to your project and compile them.

 

 

----------------
if your issue solved set "Solution" mark at the relevant post
Please use plain text.
New Developer
srinivasvadde
Posts: 8
Registered: ‎12-04-2008
My Device: Not Specified

Re: using kxml2 in JDE 4.1 ?

Hi,

 

am also facing same problem,

did u got solution...??

please help me same..

 

 

thanks in advance.

cnu.

 

 

Please use plain text.
Developer
tonybse
Posts: 61
Registered: ‎09-29-2008
My Device: Not Specified

Re: using kxml2 in JDE 4.1 ?

I switched to rim.api for the XML. not ideal solution, though, because I found some messages in the forum stated that some of BB devices are stripped from the carriers and this API is not available there.
Please use plain text.