运行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.
分享到:
相关推荐
标签:ant-jsch-1.8.0.jar,ant,jsch,1.8.0,jar包下载,依赖包
标签:ant-jsch-1.9.4-sources.jar,ant,jsch,1.9.4,sources,jar包下载,依赖包
标签:ant-jsch-1.8.1.jar.zip,ant,jsch,1.8.1,jar.zip包下载,依赖包
标签:ant-jsch.jar.zip,ant,jsch,jar.zip包下载,依赖包
标签:ant-jsch-1.7.0.jar,ant,jsch,1.7.0,jar包下载,依赖包
标签:ant-jsch-1.9.0.jar,ant,jsch,1.9.0,jar包下载,依赖包
标签:ant-jsch-1.6.jar.zip,ant,jsch,1.6,jar.zip包下载,依赖包
标签:ant-jsch-1.8.3.jar,ant,jsch,1.8.3,jar包下载,依赖包
ant运行scp以及sshexec任务所必须的jar包,这是optional的,所以ant默认不会有的,需要自己加上
jarjar-plexus-component-annotations-1.5.5.jar jarjar-plexus-container-default-1.5.5.jar jarjar-plexus-interpolation-1.14.jar jarjar-plexus-sec-dispatcher-1.3.jar jarjar-plexus-utils-2.0.6.jar ...
标签:ant-jsch-1.8.4-sources.jar,ant,jsch,1.8.4,sources,jar包下载,依赖包
标签:ant-jsch-1.8.3-sources.jar,ant,jsch,1.8.3,sources,jar包下载,依赖包
标签:ant-jsch-1.9.2-sources.jar,ant,jsch,1.9.2,sources,jar包下载,依赖包
标签:ant-jsch-1.9.3-sources.jar,ant,jsch,1.9.3,sources,jar包下载,依赖包
标签:ant-jsch-1.9.1-sources.jar,ant,jsch,1.9.1,sources,jar包下载,依赖包
标签:ant-jsch-1.9.0-sources.jar,ant,jsch,1.9.0,sources,jar包下载,依赖包
标签:ant-jsch-1.8.1.jar,ant,jsch,1.8.1,jar包下载,依赖包
标签:ant-jsch-1.6.2.jar.zip,ant,jsch,1.6.2,jar.zip包下载,依赖包
标签:ant-jsch-1.7.1.jar,ant,jsch,1.7.1,jar包下载,依赖包
标签:ant-jsch-1.9.3.jar,ant,jsch,1.9.3,jar包下载,依赖包