BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 11-19-2008, 03:07 PM   #1 (permalink)
New Member
 
Join Date: Nov 2008
Model: 8800
PIN: N/A
Carrier: TMobile
Posts: 5
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default Adding external jars with eclipse

Please Login to Remove!

This should be an easy question but I can't seem to figure it out. Does anyone know the way you add 3rd party jar files to a project in eclipse? I wanted to use kxml2.jar but everytime I get:

searching installed codfiles for alias 'kxml2-2.3.0'
Searching uninstalled codfiles for alias 'kxml2-2.3.0'
Module 'kxml2-2.3.0' not found.Error starting RimLocator: Module 'kxml2-2.3.0' not found.


I added the jar like a normal eclipse project by adding the jar to the build path.


I ran accross this documentation but it is for the JDE and not everything matches up in eclipse:

How To - Compile a jar file into a BlackBerry Library
Article Number: DB-00042

blackberry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800901/How_To_-_Compile_a_JAR_file_into_a_BlackBerry_Library.html ?nodeid=801017&vernum=0


Any ideas.

Thanks.
Offline  
Old 11-19-2008, 11:34 PM   #2 (permalink)
Thumbs Must Hurt
 
baran_khan's Avatar
 
Join Date: Apr 2008
Model: 9500
PIN: N/A
Carrier: Airtel
Posts: 110
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

HI,

There are two ways of doing this,

First the way you have done. But that don't normally work as that will add Jar to the eclipse environment and not the Blackberry simulator environment.

Second, right click on the project and select "Add file to Blackberry Project". This will add the JAR file to the blackberry context and hence will be accessible. I m not sure about ur case, but it does work out.

Hope it helps!!
__________________
Smart People ask for Help!!!
Offline  
Old 11-20-2008, 01:35 AM   #3 (permalink)
New Member
 
Join Date: Nov 2008
Model: 8800
PIN: N/A
Carrier: TMobile
Posts: 5
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Unfortunately i believe the latest eclipse plugin doesn't include the 'Add File to Blackberry project' as a menu item. Since that doesn't exist do you have any idea?
Offline  
Old 11-20-2008, 01:49 AM   #4 (permalink)
Thumbs Must Hurt
 
baran_khan's Avatar
 
Join Date: Apr 2008
Model: 9500
PIN: N/A
Carrier: Airtel
Posts: 110
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

well,

how about creating a separate project and adding that JAR file to that project and adding this newly created project as a reference to your existing project. We do it in case of ksoap2 if you have heard of it.
__________________
Smart People ask for Help!!!
Offline  
Closed Thread


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

50pcs AT24C128 24C128 SOP8 IC EEPROM 128KBIT 1MHZ NEW T3
$9.85
50pcs AT24C128 24C128 SOP8 IC EEPROM 128KBIT 1MHZ NEW T3 picture5pcs AT24C128 24C128 SOP8 IC EEPROM 128KBIT 1MHZ NEW T3
$1.52
5pcs AT24C128 24C128 SOP8 IC EEPROM 128KBIT 1MHZ NEW T3 picture2Pc DS3231 AT24C32 IIC High Precision RTC Module Clock EEPROM Memory For Arduino
$5.32
2Pc DS3231 AT24C32 IIC High Precision RTC Module Clock EEPROM Memory For Arduino pictureNew JHW2013 USB Programmer for 24 25 93 EEPROM 25 Flash Bios Chip 12Mbps #
$18.22
New JHW2013 USB Programmer for 24 25 93 EEPROM 25 Flash Bios Chip 12Mbps # picture24/25 series EEPROM USB Programmer CH341A Software&driver mini-B connector
$3.64
24/25 series EEPROM USB Programmer CH341A Software&driver mini-B connector picture






Copyright 2004-2016 BlackBerryForums.com.
The names RIM and BlackBerry are registered Trademarks of BlackBerry Inc.