I want to add a jar file to my BlackBerry project. I have tried adding the jar file by the following manner ->
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?
A JAR file is essentially a zip file that contains an optional META-INF directory. A JAR file can be created by the command-line jar tool, or by using the java. util. jar API in the Java platform.
If your project builds with Java 9+ make sure you've selected Classpath (as shown here). You should also be able to add the JAR with right-click on the project > Build Path > Add External Archives....
If it is a jar or zip file, move it to the package's code/jars/static directory. This will add the jar or zip to the server's classpath and make it available to all packages.
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
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With