How to add library project with the current development project in blackberry

后端 未结 1 1669
遥遥无期
遥遥无期 2020-12-12 05:25

I\'m new to blackberry, currently I\'m developing a project, in that project I need to add a jar(Ksoap) file. For this I created a project and I added the jar file which I r

相关标签:
1条回答
  • 2020-12-12 06:11

    My recipe:

    1. Manually preverify your jar with the preverify tool included in the JDE (the path is "C:\Program files\Research In Motion\BlackBerry JDE x.x.x\bin", where the x's are version numbers).
    2. Pick the preverivied jar from the "bin\output" directory.
    3. Copy the file and paste in your eclipse package explorer, at the root of the workspace, or (if you are using old plugin) inside the src folder.
    4. Java Build Path -> libraries tab -> add jar.
    5. Enjoy, but...

    This will work for a given project. If you try to do the same in another project, you'll get a RuntimeException because there are classes with the same name (the package names collide). You can refactor the packages in jar for each project, or add the jar to a library project instead of the main project, so that other projects can use it.

    0 讨论(0)
提交回复
热议问题