当前位置: 代码迷 >> JavaScript >> ant jsch.jar - 一个错误及解决办法
  详细解决方案

ant jsch.jar - 一个错误及解决办法

热度:611   发布时间:2012-12-25 16:18:28.0
ant jsch.jar -- 一个异常及解决方法

运行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

?

Go to?Window > Preferences > Ant > Runtime > Classpath, select “Ant Home Entries (default)” and click “Add External JARs…”. Select the required dependency or dependencies and accept. Now, the selected JAR files will be loaded to the class path and the optional ant task depending on them will work.

?

?

  相关解决方案