Adding JSpeex Jar file to Blackberry Project

2019-06-08 03:39发布

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条回答
ら.Afraid
2楼-- · 2019-06-08 04:11

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.

查看更多
登录 后发表回答