Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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?

like image 230
iLearner Avatar asked Jun 02 '11 06:06

iLearner


People also ask

Is a JAR file the same as a zip file?

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.

Why can I not add external jars in eclipse?

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....

Where do I put jar files?

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.


2 Answers

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

like image 73
BBdev Avatar answered Nov 07 '22 20:11

BBdev


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.

like image 22
estebanuri Avatar answered Nov 07 '22 19:11

estebanuri