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包就可以了。

 

Trackback URL

eclipse ant使用scp task所需的jar包 被人喷过1次!

  1. mumu
    2009-04-26 11:14 Permalink

    What happened?