Reputation: 1078
I am using jgit to clone a repository of using java code. I am able to clone to a local (windows) machine when testing, but unable to clone to a aws server.
Folder is not created in local path. I am creating the clone under /tmp/loc/$proName
. I gave 777 to the loc
folder, but not able to get a repo inside that.
Any help would be appreciated.
Thanks in advance
Upvotes: 2
Views: 1208
Reputation: 72201
In short - complete reinstall of Eclipse fixed the java.lang.NoClassDefFoundError: Could not initialize class org.eclipse.jgit.util.FS
error I was getting.
I'm on a mac, and I tried updating Eclipse and Java with a reboot as well and the problem persisted.
I just decided to reinstall Eclipse and that solved the problem. I moved my entire /Applications/Eclipse.app folder to a temp location, then downloaded and ran Eclipse again and it works fine, git integration is fine too ;-)
Upvotes: 1
Reputation: 1327736
java.lang.NoClassDefFoundError: Could not initialize class org.eclipse.jgit.util.FS
THat seems to be a pending bug for which it was suggested:
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.
Upvotes: 3