`

ant下载及配置

 
阅读更多
------------------ant下载及配置------------------
下载ant的网址:http://ant.apache.org/
下载jdk的网址:http://java.sun.com/j2se/1.5.0/download.jsp

1:都直接进行解压
2、环境变量的设置
在‘我的电脑>>属性>>高级>>环境变量>>系统变量 下编辑
ANT_HOME=f:\files\ant

JAVA_HOME=f:\files\jdk

CLASSPATH=f:\files\jdk\lib\tools.jar

PATH=%PATH%;%JAVA_HOME%\bin;%ANT_HOME%\bin

---------eclipse ant使用scp task所需的jar包---------
BUILD FAILED
/home/spidercoco/workspace/ebas-install/build.xml:13: Problem: failed to create task or type scp
Cause: Could not load a dependent class com/jcraft/jsch/UserInfo
       It is not enough to have Ant's optional JARs
       you need the JAR files that the optional tasks depend upon.
       Ant's optional task dependencies are listed in the manual.
Action: Determine what extra JAR files are needed, and place them in one of:
        -/usr/local/eclipse/plugins/org.apache.ant_1.7.0.v200803061910/lib
        -/home/spidercoco/.ant/lib
        -a directory added on the command line with the -lib argument

Do not panic, this is a common problem.
The commonest cause is a missing JAR.



http://www.jcraft.com/jsch/index.html上面有。。。

当然,并不是拷过去就完事了。你得在eclipse中设置一下,windows->preference->ant->runtime->classpath,加入刚才的jar包就可以了。
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics