views:

199

answers:

2

i am using the latest IDE for eclipse and have attached the blackberry 5.0 sim. i am a new bb developer and i was wondering if there is any way of integrating java 1.6 classes (or any 3rd party jars) within the blackberry project without getting an error similar to the following:

org.apache.axis2.util.Utils$3: Warning!: Duplicate method only differs by return type: run org.apache.axis2.jaxws.util.WSDL4JWrapper: Warning!: Duplicate method only differs by return type: getFirstPortBinding C:\Program Files\Eclipse\axis\axis2-1.5.1\lib\axis2-transport-http-1.5.1.jar(org/apache/axis2/transport/http/ApplicationXMLFormatter.class): Error!: Duplicate definition for 'org.apache.axis2.transport.http.ApplicationXMLFormatter' found in: org.apache.axis2.transport.http.ApplicationXMLFormatter

i know why i am getting this error (because of duplicate definitions for the same class)....but am i really stuck just sticking to "net.rim" classes within my project? if i wanted to use the "asList()" method, can i not do that because that's outside of the RIM classes?

i am really just hoping that i can integrate outside jars into my blackberry project without getting "duplicate" warnings and error messages.

thank you in advance for your help. much appreciated.

jc

A: 

You can't uses the JDK 6, you need the JDK 5. You can integrate third parties jars except if you want:

  • I/O
  • Swing

In those cases you need to uses the Blackberry API.

Dani Cricco
thank you for your assistance dani.
sexitrainer
+2  A: 

All source code and external libraries used in your BlackBerry app must conform to J2ME which you can think of as a subset of the Java SDKs. J2ME is quite limited - for example there are no Collections classes in J2ME (just the older Vector, etc.). The language level used by the compiler is Java 1.3.

So in a nutshell - you're going to have a hard time porting over third-party libraries unless they were specifically designed to run in a J2ME environment.

Marc Novakowski