我正在尝试从MacOSX上的SVN编译Cyberduck,我已经运行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但仍然没有运气。你知道我是否遗漏了一些文件或一些环境变量吗?
干杯,
答案 0 :(得分:1)
你的类路径中需要jsch-0.1.42.jar jar
答案 1 :(得分:0)
将Ant的依赖项从 / lib / ext复制到〜/ .ant / lib / .jar *。这在Readme。
中有记录