views:

378

answers:

1

Hi,

I am trying to add JSpeex's jar file to Blackberry project. Compilation fails if I add it.

Also, if I add source files to the project, compilation fails as JSpeex is pure Java and classes are not supported in Blackberry app.

Please help me to resolve the issue...

Thanks in advance.

+1  A: 

Pure Java? Keep in mind that the Blackberry JVM is still based on J2ME, which is kind of a subset of java.

To include external JAR follow the Knowledge Base Entry

How To - Compile a jar file into a BlackBerry Library

Another way is to extract your jar file (change the file ending to .zip instead of .jar and extract the source files) and using the preverify option to check your java classes.

preverify.exe [-d] output -classpath directory input; directory

Good Luck,
rAyt

Edit in response to your comment

In C:\Program Files\Research In Motion\BlackBerry JDE 4.7\bin try

preverify -classpath "C:\Program Files\Research In Motion\BlackBerry JDE 4.7\lib\net_rim_api.jar" "d:\myjar.jar"

and look in the output folder.

Henrik P. Hessel
Thanks rAyt, I reffered to the link you gave and tried to build the library project first.Im getting : JSpeexDec: Error!: Missing stack map at label: 39Error while building projectwhile building library project containing speex jar.How do I solve this error?
imMobile