关闭

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

标签: antjschscpbuild
364人阅读 评论(0) 收藏 举报
分类:

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运行环境即可~



1
0

查看评论
* 以上用户言论只代表其个人观点,不代表CSDN网站的观点或立场
    个人资料
    • 访问:2690次
    • 积分:145
    • 等级:
    • 排名:千里之外
    • 原创:7篇
    • 转载:0篇
    • 译文:0篇
    • 评论:1条
    文章分类