iLearner
iLearner

Reputation: 1680

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

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?

Upvotes: 8

Views: 1228

Answers (3)

estebanuri
estebanuri

Reputation: 19

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.

Upvotes: 1

littleK
littleK

Reputation: 20163

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

Upvotes: 0

BBdev
BBdev

Reputation: 4942

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

Upvotes: 1

Related Questions