• Categories

  • your are stumbler#

    • 26,496
  • Author

  • Recent comments:

    over at this website on Interesting read about Interne…
    Gmail Inbox Tabs and… on Malkovich Bias
    guptaradhesh on Yahoo acquires Tumblr! Great…
  • Advertisements

Using external jar files in BlackBerry (eclipse blackberry plugin)

Posted by guptaradhesh on October 14, 2010

Using external jar files in BlackBerry (eclipse blackberry plugin)

Here is my experience of trying using external jars with my eclipse blackberry plugin.
I googled hell lot and found many posts and steps for adding external jars to my working BB-project. One needs to pre-varify the external jar before using it.
The steps to be followed for preverifying are available at many places.
Let me mention them once again –

1. Go to your JDE installation folder, for Windows XP it is usually C:\Program Files\Research In Motion\BlackBerry JDE 4.3.0\bin. If you are using eclipse then you can also find the installation directory of BlackBerry plugin.
2. Copy your jar file to bin folder.
3. Notice the preverify.exe file. This is the tool we’ll use.
4. Now open your command prompt and change your current directory to your JDE installation directory.
5. execute the following command:
preverify -classpath “JDE_PATH_HERE\lib\net_rim_api.jar” “your_jar_filename”
6. Notice that in bin directory, another folder named output has been created. Preverified jar file resides here. Copy the preverified jar file with the same name that the non-preverified jar file has.
I have uploaded one such preverified json jar in my previous post.

My experience while accessing the preverified jars-
When I created a blackberry library project and added this self-created preverified jar and added this as an external library to my working project, I was able to use the external library.
I was successful in case of using kxml.jar, but the same thing falters when I use the self-created json.jar.
I hope I didn’t do any mistake while preverifying it.
If anyone is able to use the json.jar as external library project, do post a comment.


2 Responses to “Using external jar files in BlackBerry (eclipse blackberry plugin)”

  1. Alia Ihab said


    I’m trying to preverify a .jar file and I received this error “JAR file creation failed with error -1”. Do you have any idea what’s wrong?
    I’ve been searching for quite sometime but failed to find a solution.


  2. Amr Elghadban said

    when i do this it not generate jar .. it generate tmp29350 folder
    i try to preverify net_rim_bb_qm_platform.jar for BBM

    i use this command

    preverify -classpath “C:\Program Files\Research In Motion\BlackBerry JDE 5.0.0\lib\net_rim_api.jar” “net_rim_bb_qm_platform.jar”

    thanks in advanced

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: