我正在尝试从MacOSX上的SVN编译Cyberduck,我已经运行make来获取xcode项目,并尝试从图形用户界面运行‘构建和编译’,在得到这个错误之前,一切似乎都很顺利:
/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,但仍然没有成功。你知道我是否遗漏了一些文件或环境变量吗?
干杯,
发布于 2010-12-13 20:02:16
您的类路径中需要jsch-0.1.42.jar jar
发布于 2011-09-29 01:02:21
将Ant的依赖项从/lib/ext复制到~/.ant/lib/.jar*。Readme中记录了这一点。
https://stackoverflow.com/questions/4428566
复制相似问题