Adding JSpeex Jar file to Blackberry Project

早过忘川 提交于 2019-12-08 05:23:06

问题


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:


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.



来源:https://stackoverflow.com/questions/1287011/adding-jspeex-jar-file-to-blackberry-project

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!