My recipe:
- Manually preverify your jar with the
preverify
tool included in the JDE (the path is "C:Program filesResearch In MotionBlackBerry JDE x.x.xin", where the x's are version numbers).
- Pick the preverivied jar from the "binoutput" directory.
- 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.
- Java Build Path -> libraries tab -> add jar.
- 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.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…