【发布时间】:2019-02-09 21:04:34
【问题描述】:
我在我的 Eclipse IDE 中运行 ant 脚本文件。文件包含命令scp:
<scp file="myfile.txt" todir="user:password@somehost:/home/chuck"/>
这行导致错误:
Cause: Could not load a dependent class com/jcraft/jsch/Logger
It is not enough to have Ant's optional JARs
为什么我的 Eclipse 的 Ant 没有这个类,我可以在哪里下载所需的库?如何知道需要哪个库版本?
【问题讨论】:
-
ant.apache.org/manual/Tasks/scp.html 指出“注意:此任务依赖于 Ant 发行版中未包含的外部库。”