views:

1220

answers:

6

Hi, I am using JDom jar and i want to add to my blackberry project . I am using eclipse plugins for blacberry. while building blackberry app from eclipse the error is displayed on the console as "JDOMAbout$info:error!missing stack map @label.... "
rapc falied for the project along with this several warnings are also displayed ... so any body have came across this issue plz help .

+1  A: 

The stack map is part of what's generated when a jar file is preverified. Sounds like your jar is not J2ME ready. Assuming it's compatible with J2ME, the standard way is to create a .cod file from the .jar, and reference that in your project. Unfortunately you can't do that with the Eclipse plugin, but once you have the .cod, you can reference it in your Eclipse project.

Anthony Rizk
A: 

Hi, i have tried to compile a jar file into a black berry library with the JDE also still not luck so is there any other way to proceed

Sam97305421562
i have tried to convert the jar file to cod file but the problem is that the jar file which i am using is not a midlet one i.e, J2me it is the java jar file is this makes any difference ?
Sam97305421562
Yes, it makes a difference - Java SE != Java ME in general. The basic API is different, so it's very unlikely it would be convertible.
Anthony Rizk
A: 

You have to create a Blackberry archive or library project (or whatever it's called) and add your library to that, then reference it from your application project. You may or may not have to use the Blackberry JDE to do some hackery with the jdp file as well, but I can assure it works in Eclipse. We had the kSOAP library included in ours and Eclipse would 'build' it with rapc and generate the proper files (you sort of have to do it manually, by telling the project to build).

I unfortunately don't have an environment to check things right now, but the basic idea was have a second project, include the jar, and then reference that.

All that, and the jar has to be J2ME compatible.

Daniel Huckstep
If possible can u plz send me a link for steps to include external jar in eclipse as it didnt work for me using the standard procedure .also in JDE it didnt worked with the standard steps provided on line .
Sam97305421562
A: 

Maybe You can find something useful and more J2ME friendly in kDom package of kXML project

JaanusSiim