title: JGIT: FATAL: Could not initialize class org.eclipse.jgit.transport.Transport
body: <p>When I use Jenkins to build my project, I got error:</p>
  
  <pre><code>Could not initialize class org.eclipse.jgit.transport.Transport
  java.lang.NoClassDefFoundError: Could not initialize class org.eclipse.jgit.transport.Transport
      at org.eclipse.jgit.api.FetchCommand.call(FetchCommand.java:120)
      at org.jenkinsci.plugins.gitclient.JGitAPIImpl$2.execute(JGitAPIImpl.java:631)
      at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:761)
      at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:1012)
      at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1043)
      at hudson.scm.SCM.checkout(SCM.java:485)
      at hudson.model.AbstractProject.checkout(AbstractProject.java:1277)
      at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:610)
      at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)
      at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:532)
      at hudson.model.Run.execute(Run.java:1741)
      at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
      at hudson.model.ResourceController.execute(ResourceController.java:98)
      at hudson.model.Executor.run(Executor.java:408)
  </code></pre>
  
  <p>And I also get the error when I give git repository:</p>
  
  <pre><code>Failed to connect to repository : Command "/usr/bin/git -c core.askpass=true ls-remote -h ssh://ha.nguyen@192.168.10.13/CVS/git/Brea HEAD" returned status code 128:
      stdout: 
      stderr: Permission denied, please try again. 
      Permission denied, please try again. 
      Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password). 
      fatal: The remote end hung up unexpectedly
  </code></pre>
  
  <p>Please help me, tomorrow is my deadline. :(</p>