我正在使用 jgit 克隆使用 java 代码的存储库。我在测试时能够克隆到本地(Windows)计算机,但无法克隆到 aws 服务器。
未在本地路径中创建文件夹。我正在 /tmp/loc/$proName
下创建克隆。我将 777 交给了 loc
文件夹,但无法在其中获取存储库。
如有任何帮助,我们将不胜感激。
提前致谢
最佳答案
java.lang.NoClassDefFoundError: Could not initialize class org.eclipse.jgit.util.FS
这似乎是 pending bug建议这样做:
this is probably incomplete classpath in the script.
Please try editing your
/usr/bin/jgit
script and changing the "export JGIT_CLASSPATH
" line to the following:
export JGIT_CLASSPATH="$(build-classpath jgit slf4j args4j jsch commons-compress xz-java javaewah)"
And see if that fixes the problem for you.
关于java - git克隆在java中不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32983945/