Caused by: java.lang.ClassNotFoundException: com.jcraft.jsch.JSchException

有些话、适合烂在心里 提交于 2019-12-21 17:43:17

问题


The protocol between local repository and remote repository is HTTPS instead of ssh,does it still need lib of jsch,and if it's true, can you tell me how to handle in details,thanks so much~~


回答1:


Even if it isn't used for https access, jsch is still required for JGit.
See JGit dependencies.

That thread states the same thing, even when cloning an https repo.

This blog post deals with a missing jsch library like so:

There are 2 ways to solve this problem, depending on your setup.

1.) If you're using ant installed on your machine, example on c:\apache-ant. Just place the jsch.jar in it's lib folder.

2.) In case you are using eclipse's ant plugin.

  • Open eclipse
  • Click Window->Preference
  • In type filter textbox type "ant"
  • Click Runtime
  • Expand "Global Entries"
  • Add external jar, and locate jsch.jar in your system


来源:https://stackoverflow.com/questions/17586339/caused-by-java-lang-classnotfoundexception-com-jcraft-jsch-jschexception

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!