用Eclipse3.3+Ant1.7.0,在build.xml文件中使用ftp将包发到远程服务器上时总是出错,出错信息为:
“Could not create type ftp due to java.lang.NoClassDefFoundError:
org/apache/commons/net/ftp/FTPClientConfig”
结果Google了N久,知道是少了两个包:commons-net-1.4.1.jar和jakarta-oro-2.0.8.jar
把这两个包放到Eclipse的Ant的lib目录下,在Eclipse重新执行ant,问题依然存在。结果又Google了很久,最终,在一篇外国博文 中找到解决方法,原文如下
“I had the same error message, but only in Eclipse (version 3.3).
I did not get the error on command line. I had setup up ANT_HOME variable correctly and copied the jakarta-oro-2.0.8.jar and commons-net-1.4.1.jar to %ANT_HOME%\lib
However it seems that the ANT Eclipse module does not automatically parse the %ANT_HOME%\lib directory for new jars and I had to add them manually
preferences->Ant->Runtime, Classpath tab, Ant Home Entries -> Add External JARs...
Then it worked. ”
JDK 选择用1.6
相关推荐
当应用hudson一类的自动化平台来构建Eclipse插件时,不能直接调用ANT工具来编译。本工具自动修改Eclipse的路径为 ${ECLIPSE_HOME},并且自动可查找相应插件。 使用方法: java -jar buildfileGenerator.jar build....
使用 Eclipse 和 Ant 进行 Python 开发
Eclipse之ANT使用,开发部署工具利器!
Eclipse插件- Sexftp 说明:简单实现了FTP上传功能,可装在Eclipse3.5以上,Myclipse 8.5 以上版本。Jdk版本1.5以上。 简介: 1、可轻松将eclipse中的项目上传到FTP生产环境服务器上,省去来回切换工具的麻烦。 2、...
Eclipse插件Eclipse插件Eclipse插件Eclipse插件Eclipse插件Eclipse插件Eclipse插件Eclipse插件Eclipse插件Eclipse插件Eclipse插件Eclipse插件Eclipse插件Eclipse插件Eclipse插件Eclipse插件Eclipse插件Eclipse插件...
scala eclipse插件 拷贝到相应的目录即可使用,百度一大堆
axis2-eclipse插件
Eclipse插件开发学习笔记.pdf Eclipse插件开发学习笔记.pdf Eclipse插件开发学习笔记.pdf
Eclipse插件开发Eclipse插件开发Eclipse插件开发Eclipse插件开发http://www.ibm.com/developerworks/cn/java/os-ecplug/
eclipse下利用ant、junit进行自动化测试例子源码
eclipse插件开发指南.pdfeclipse插件开发指南.pdf
Eclipse插件开发教程PPT Eclipse插件开发教程PPT
Eclipse插件开发方法与实战,一本不错的eclipse的插件开发参考书,感兴趣的可以下下看看!
一个关于ant4eclipse的插件的东东
Eclipse中Maven插件Eclipse中Maven插件Eclipse中Maven插件Eclipse中Maven插件
Using ANT in Eclipse
ant打包rcp必备环境 eclipse-3.8.2-delta-pack eclipse-SDK-3.8.2-win32 org.eclipse.rcp-3.8.2
svn1.1.9集合eclipse的插件包和配置方法
Eclipse插件开发问题,欢迎探讨与学习。
《Eclipse插件开发(原书第3版)(畅销插件开发指南新版)》主要介绍了开发Eclipse商业插件的完整过程,并从标准窗口小部件工具集、命令与操作、视图、透视图、实现帮助、国际化等方面对创建Eclipse商业插件进行了详细...