Ant脚本中运行build.xml出现如下异常:
Cause: Could not load a dependent class com/jcraft/jsch/Logger
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.
解决方法: 加入jsch-x.x.x.jar
MyEclipse中操作步骤:
Window > Preferences > Ant > Runtime > Classpath:
选择“Ant Home Entries (default)”
点击“Add External JARs…”
选择相应的依赖并确认。
下载地址:
发表评论
难的是和自己保持联系~