{"id":269,"date":"2011-07-29T06:50:00","date_gmt":"2011-07-29T11:50:00","guid":{"rendered":"http:\/\/www.buluschek.com\/?p=269"},"modified":"2023-07-02T10:49:23","modified_gmt":"2023-07-02T08:49:23","slug":"ant-scp-needs-jsch-jar-in-eclipse","status":"publish","type":"post","link":"https:\/\/www.buluschek.com\/?p=269","title":{"rendered":"ant scp needs jsch.jar in Eclipse"},"content":{"rendered":"<p>If in Eclipse, using ant scp you get the error:<\/p>\n<p><code>Cause: Could not load a dependent class com\/jcraft\/jsch\/Logger<br \/>\n       It is not enough to have Ant's optional JARs<br \/>\n       you need the JAR files that the optional tasks depend upon.<br \/>\n       Ant's optional task dependencies are listed in the manual.<br \/>\nAction: Determine what extra JAR files are needed, and place them in one of:<br \/>\n        -C:\\Program Files (x86)\\Eclipse\\plugins\\org.apache.ant_1.8.2.v20110505-1300\\lib<br \/>\n        -C:\\Users\\pbu.DESKTOP-KSA\\.ant\\lib<br \/>\n        -a directory added on the command line with the -lib argument<\/p>\n<p>Do not panic, this is a common problem.<br \/>\nThe commonest cause is a missing JAR.<\/p>\n<p>This is not a bug; it is a configuration problem<\/code><\/p>\n<p>You need to do 3 things:<\/p>\n<ol>\n<li>get <code>jsch.jar<\/code> from <a href=\"http:\/\/www.jcraft.com\/jsch\/\">http:\/\/www.jcraft.com\/jsch\/<\/a><\/li>\n<li>place it in the ant folder as indicated in the error<\/li>\n<li><strong>add the jar to the ant classpath in Eclipse <br \/>Window\/Preferences\/Ant\/Runtime\/Ant Home Entries &#8211; Add external JARs, choose your jsch.jar<\/strong><\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>If in Eclipse, using ant scp you get the error: Cause: Could not load a dependent class com\/jcraft\/jsch\/Logger It is not enough to have Ant&#8217;s optional JARs you need the JAR files that the optional tasks depend upon. Ant&#8217;s optional task dependencies are listed in the manual. Action: Determine what extra JAR files are needed, [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-269","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/www.buluschek.com\/index.php?rest_route=\/wp\/v2\/posts\/269","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.buluschek.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.buluschek.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.buluschek.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.buluschek.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=269"}],"version-history":[{"count":10,"href":"https:\/\/www.buluschek.com\/index.php?rest_route=\/wp\/v2\/posts\/269\/revisions"}],"predecessor-version":[{"id":336,"href":"https:\/\/www.buluschek.com\/index.php?rest_route=\/wp\/v2\/posts\/269\/revisions\/336"}],"wp:attachment":[{"href":"https:\/\/www.buluschek.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=269"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.buluschek.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=269"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.buluschek.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=269"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}