Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » Getting a Project From Github to Eclipse(I can't do it)
Getting a Project From Github to Eclipse [message #1703515] Sat, 01 August 2015 21:55 Go to next message
Eclipse UserFriend
Can someone explain how to get this github repository https://github.com/MassiveCraft/Factions onto Eclipse so I can edit the source code?

I cloned the repository, but I can't import it into eclipse, because in the import projects screen, no available projects show up.

Can someone give me a step-by-step tutorial on how to import this project into eclipse?

Thanks.
Re: Getting a Project From Github to Eclipse [message #1705342 is a reply to message #1703515] Thu, 13 August 2015 18:21 Go to previous messageGo to next message
Eclipse UserFriend
The problem is that the project doesn't have the Eclipse project files, you have to create the project yourself.
When you import project from git workspace, select "Import using new project wizard" on the first page. Then select Java Project. Uncheck "Use default location" and Browse into the Factions folder of your git repository. Finish the wizard and voila!
Re: Getting a Project From Github to Eclipse [message #1706780 is a reply to message #1705342] Mon, 31 August 2015 01:27 Go to previous message
Eclipse UserFriend
Copy the URL from GitHub and select in Eclipse from the menu the

File → Import → Git → Projects from Git

http://wiki.eclipse.org/images/5/5a/Egit-0.9-import-projects-select-repository.png

If the Git repo isn't cloned yet:

In> order to checkout a remote project, you will have to clone its repository first.
Open the Eclipse Import wizard (e.g. File => Import), select Git => Projects from Git and click Next.
Select "URI" and click Next.
Now you will have to enter the repository's location and connection data. Entering the URI will automatically fill some fields. Complete any other required fields and hit Next. If you use GitHub, you can copy the URI from the web page.

Select all branches you wish to clone and hit Next again.

Hit the Clone... button to open another wizard for cloning Git repositories.



Original answer (July 2011)

First, if your "Working Directory" is C:\Users, that is odd, since it would mean you have cloned the GitHub repo directly within C:\Users (i.e. you have a .git directory in C:\Users)

Usually, you would clone a GitHub repo in "any directory of your choice\theGitHubRepoName".

Source: stackoverflow
Previous Topic:Variable confusion
Next Topic:How to connect MySQL database in Java ?
Goto Forum:
  


Current Time: Thu Feb 27 20:41:52 EST 2025

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

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

Back to the top