异常提示:
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.
Action: Determine what extra JAR files are needed, and place them in one of:
-D:\BaiduNetdiskDownload\eclipse\eclipse\plugins\org.apache.ant_1.9.2.v201404171502\lib
-C:\Users\admin.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
解决方案:
Window > Preferences > Ant > Runtime > Classpath>Ant Home Entries (default)
点击:Add External JARs…
选择依赖的JAR文件


1、运行build.xml
本文介绍了如何解决在使用Ant构建工具时遇到的依赖类加载失败问题。主要原因是缺少必要的JAR文件,文中提供了详细的步骤来定位问题并添加所需的外部JAR文件到Ant的类路径中。
6036

被折叠的 条评论
为什么被折叠?



