ant 采用scp方式向远程服务器上传文件时jsch报错

Cause: Could not load a dependent class com/jcraft/jsch/Logger

       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:
        -D:\tools\eclipse\plugins\org.apache.ant_1.9.2.v201404171502\lib
        -C:\Users\lenovo\.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.

This is not a bug; it is a configuration problem


报错原因是ant的Classpath中没有jsch jar包路径, 所以报错.

解决方法: 按照如下步骤操作 将 jsch.jar加入ant运行环境即可~



阅读更多
版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/u013571994/article/details/51546988
文章标签: ant jsch scp build
个人分类: ant脚本
想对作者说点什么? 我来说一句

没有更多推荐了,返回首页

加入CSDN,享受更精准的内容推荐,与500万程序员共同成长!
关闭
关闭