我是靠谱客的博主 俏皮皮皮虾,这篇文章主要介绍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:toolseclipsepluginsorg.apache.ant_1.9.2.v201404171502lib
        -C:Userslenovo.antlib
        -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运行环境即可~



最后

以上就是俏皮皮皮虾最近收集整理的关于ant 采用scp方式向远程服务器上传文件时jsch报错的全部内容,更多相关ant内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(109)

评论列表共有 0 条评论

立即
投稿
返回
顶部