How to add external jar or zip file in the Blackberry project

社会主义新天地 提交于 2019-12-01 15:04:44

问题


I want to add a jar file to my BlackBerry project. I have tried adding the jar file by the following manner ->

  • Right click on project -> properties -> Build -> Imported jar files -> Add

But after that, whenever I try to run the application I get "Module abc.jar not found error".

How do I add a jar file to a BlackBerry project?


回答1:


Right click on project->BuildPath->Libraries->Addexternaljar and then press ok it will solved your problem it is for if you are using eclipseplugins.you can see the details here




回答2:


I find out how to do it on JDE environment:

In order to compile with the external JAR, must do right click on project, properties -> Build -> Imported JAR files, and add desired external JARs.

And for adding module to BB simulator for debugging, the way is creating a new project on the same workspace, add the external JAR to it as a resource file, and set the project Build to Library (on properties -> Application -> Project Type).

I hope this could serve.




回答3:


If that doesn't work, you might also want to click on the "Order and Export" tab (next to the "Library" tab), and ensure that the checkbox next to your .jar is checked



来源:https://stackoverflow.com/questions/6211041/how-to-add-external-jar-or-zip-file-in-the-blackberry-project

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