试图编译Cyber​​duck和ant错误

时间:2010-12-13 11:58:41

标签: java macos ant

我正在尝试从MacOSX上的SVN编译Cyber​​duck,我已经运行make来获取xcode项目并尝试从GUI运行'build and compile',一切似乎都顺利进行,直到出现错误:

/Users/chmouel.boudjnah/tmp/cyberduck/build-mac.xml:187:0 /Users/chmouel.boudjnah/tmp/cyberduck/build-mac.xml:187:问题:无法创建任务或类型SCP

Cause: Could not load a dependent class com/jcraft/jsch/UserInfo
       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:
        -/usr/share/ant/lib
        -/Users/chmouel.boudjnah/.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
Total time: 5 minutes 4 seconds

我已添加此文件〜/ .ant / lib / ant-jsch.jar但仍然没有运气。你知道我是否遗漏了一些文件或一些环境变量吗?

干杯,

2 个答案:

答案 0 :(得分:1)

你的类路径中需要jsch-0.1.42.jar jar

答案 1 :(得分:0)

将Ant的依赖项从 / lib / ext复制到〜/ .ant / lib / .jar *。这在Readme

中有记录