8

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?

Michael Donohue
  • 11,606
  • 5
  • 29
  • 44
iLearner
  • 1,652
  • 2
  • 18
  • 44

3 Answers3

1

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.

estebanuri
  • 21
  • 1
1

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

BBdev
  • 4,722
  • 2
  • 29
  • 44
0

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

littleK
  • 17,803
  • 26
  • 116
  • 179
  • I think all u suggest is about eclipse, but I am using blackberry JDE, so please guide me in that way- – iLearner Jun 10 '11 at 07:21