你能Java 1.6的类集成到Eclipse项目的黑莓? [英] Can you integrate Java 1.6 classes into Eclipse Blackberry project?

查看:106
本文介绍了你能Java 1.6的类集成到Eclipse项目的黑莓?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用Eclipse的最新IDE和已附上黑莓5.0 SIM卡。我是一个新的BB开发人员,我想知道是否有整合黑莓项目中的Java 1.6类(或任何第三方jar文件)没有得到类似如下的错误任何方式:

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

我知道为什么我收到此错误(因为同一类重复定义的)....但我真的只是卡住坚持我的计划之内net.rim类?如果我想使用asList()方法,我不能这样做,因为这是RIM类之外吗?

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.

推荐答案

所有的源$ C ​​$ C和黑莓应用程序使用必须符合J2ME,你能想到的作为Java软件开发工具包的一个子集外部库。 J2ME是相当有限 - 例如有在J2ME中没有集合类(只老Vector的,等等)。由编译器所使用的语言水平是Java 1.3的。

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.

所以,概括地说 - 你将有一个很难移植过第三方库,除非他们被专门设计用于在J2ME环境中运行。

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.

这篇关于你能Java 1.6的类集成到Eclipse项目的黑莓?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆