Eclipse插件项目 引用其他类库的方法(jar)

这两天搞了个Eclipse插件项目,用来监测ios、android设备和电脑的连接,安装apk/ipa到对应设备等等功能。

 

遇到了build path下的library引入编译正常,运行时报Class not found err。

 

搜了下,插件项目有两种引入类库方式。

 

1.eclipse本身的类库如jdt

如图。

 

 

2.第三方jar

 

 

要注意,classpath如果填入的是目录,插件项目不会去目录下面找到所有的jar,需要分别将jar添加到classpath下。

posted @ 2014-04-28 11:10  带狗狗带  Views(364)  Comments(0Edit  收藏  举报