黑莓extrenal库的问题(模块未找到) [英] Blackberry extrenal library problem (module not found)

查看:215
本文介绍了黑莓extrenal库的问题(模块未找到)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用的Eclipse。当我添加一个外部的jar(进口it.sauronsoftware.ftp4j。*;)这似乎是确定的,我引用右击项目属性外部罐子。当我实例化一个FTPclient opbject并在模拟器中运行我得到模块没有找到。

I am using eclipse. When I add an external jar (import it.sauronsoftware.ftp4j.*;) it seems to be ok, I reference the external jar by right clicking project and the properties. When I instantiate an FTPclient opbject and run in the simulator I get "module not found".

在不同的论坛上有人建议设立一个新的库和添加罐子,然后引用该库作为我的主要项目BB的依赖。这样做的缺点是,我必须编译BB应用程序被安装沿库,我不想要这个。有另一种方式来导入第三方库与黑莓插件日食,这将使这项工作?

Somebody on a different forum suggested creating a new library and adding the jar to it, then reference this library as a dependency in my main bb project. The downside to this is that I the library must be installed along with the compiled bb app and I dont want this. Is there another way to import third party libs into eclipse with blackberry plugin that will make this work?

感谢

推荐答案

我的解决方案是(对于Eclipse插件):

my solution is (for eclipse plugin):


  1. 生成/获取* .jar文件。

  2. preverify *使用preverify工具(它在JDE_DIR \\分量\\ BIN).jar文件:

  1. Generate/get *.jar file.
  2. Preverify *.jar file using preverify tool (it's in JDE_DIR\components\bin):

preverify -classpath {} jde.home \\ lib目录\\ {net_rim_api.jar} output.file -d {output.dir}

上面的命令会产生pverified $ P $的* .jar在:{output.dir} \\输出\\

above command will produce preverified *.jar in: {output.dir}\output\

在eclipse:


  1. 添加preverified的* .jar到构建路径:(右键单击项目 - >图书馆 - >添加JAR文件)

  2. 导出的* .jar(右键单击项目 - >图书馆 - >在线订单和出口 - >检查您的* .jar)

  3. 运行应用程序,应该现在的工作

您可以编写Ant脚本来自动完成这一过程。

You can write ant script to automate this process

干杯,
中号

这篇关于黑莓extrenal库的问题(模块未找到)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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