gpt4 book ai didi

git-remote - 由 : java. lang.ClassNotFoundException : com. jcraft.jsch.JSchException 引起

转载 作者:行者123 更新时间:2023-12-04 04:45:22 27 4
gpt4 key购买 nike

本地仓库和远程仓库之间的协议(protocol)是HTTPS而不是ssh,是否还需要jsch的lib,如果是的话,能不能详细告诉我如何处理,非常感谢~~

最佳答案

即使不用于https访问,jsch JGit 仍然需要。
JGit dependencies .

thread states the same thing ,即使在克隆 https 存储库时也是如此。

这个blog post像这样处理缺少的 jsch 库:

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

关于git-remote - 由 : java. lang.ClassNotFoundException : com. jcraft.jsch.JSchException 引起,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17586339/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com