Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EGit / JGit » Problems with egit.github
Problems with egit.github [message #1405510] Thu, 07 August 2014 14:07 Go to next message
David Baum is currently offline David BaumFriend
Messages: 20
Registered: August 2014
Junior Member
Hello everyone,

my small piece of software uses the egit.github.core package. For dependencies I'm usig maven:

<dependency>
  <groupId>org.eclipse.mylyn.github</groupId>
  <artifactId>org.eclipse.egit.github.core</artifactId>
  <version>2.1.5</version>
</dependency>

...
<repository>
        <id>oss-sonatype</id>
        <name>oss-sonatype</name>
        <url>**url**</url>
        <snapshots>
            <enabled>true</enabled>
        </snapshots>
    </repository>



(I had to remove the url because of forum restrictions)

After compilation I get the following error:

Exception in thread "main" java.lang.NoClassDefFoundError: org/eclipse/egit/github/core/client/GitHubClient
        at my.project.GitHub.<init>(GitHub.java:30)
        at my.project.MainClass.main(MainClass.java:8)
Caused by: java.lang.ClassNotFoundException: org.eclipse.egit.github.core.client.GitHubClient


Then I created a java project with eclipse, added egit-github as external jar ... same error message, without maven.

What could cause this? this happens to every used class from the package.

Thanks in advance.

[Updated on: Thu, 07 August 2014 15:48]

Report message to a moderator

Re: Problems with egit.github [message #1420092 is a reply to message #1405510] Tue, 09 September 2014 13:34 Go to previous message
Matthias Sohn is currently offline Matthias SohnFriend
Messages: 1072
Registered: July 2009
Senior Member
* you are trying to use a pretty old version of the github connector (latest is 3.4)
* the github connector is built using Tycho and the build artefacts are OSGi bundles (package type eclipse-plugin)
* find them on repo.eclipse.org here https://repo.eclipse.org/content/repositories/egit-releases/org/eclipse/mylyn/github/
* you need to add Maven dependencies for the artefacts you need in your build
Previous Topic:Delete a file on remote repository via Egit
Next Topic:how to remove folder from git version control
Goto Forum:
  


Current Time: Fri Aug 23 15:43:54 GMT 2019

Powered by FUDForum. Page generated in 0.01645 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top