Eclipse的Ant需要jsch

时间:2018-09-04 19:34:44

标签: eclipse ant

我在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没有此类,并且在哪里可以下载所需的库?如何知道需要哪个库版本?

enter image description here

1 个答案:

答案 0 :(得分:0)

您可以在这里查看JSCH http://www.jcraft.com/jsch/

有一个“下载”部分,您可以在其中找到if(user_id != 'admin'){ if(author === 'admin' || author === 'Admin' || author === 'ADMIN'){ write_message = "You can't use admin NickName!"; res.redirect('/write'); } } else { conn.query(sql,[title,author,contents,user_id],function(err,rows,fields){ if(err) console.log(err); else { res.redirect('/menu/'+before_page); } }); } (在撰写本文时为.jar)。

然后,您必须设置ANT buildpath才能使用此jar。