The following guide shows you how to import the cloned repository into Eclipse IDE Show
Demo Video Back to Top Follow these steps to import an Eclipse project from your Github repository. These steps assume you have already followed the Configuring SSH Keys and Java and Eclipse Setup guides. Import Repository into EclipseYou first need to add the Github repository to Eclipse. Log into Github and open Eclipse, and follow these steps:
You only need to add this repository once, even if there are multiple Eclipse projects within that repository. For example, you only need to import the lectures repository once. However, since each homework assignment has its own repository, you will have to import each repository separately. Import Projects into EclipseBefore you start, double-check that you have the latest version of the remote repository by performing a “Pull” action (Help). Now that the repository is added to Eclipse and up-to-date, you can import the Java projects from that repository into Eclipse using these steps:
TroubleshootingIf you notice several errors, it is likely something isn’t quite right with the build path setup for your Eclipse project. This happens when your setup is different from expected (either you have a different version of Eclipse, Java, or named your third-party libraries differently). To fix this, right-click your project folder and select “Build Path” and “Configure Build Path” from the menus. On the following window, click the “Libraries” tab. Remove everything that has a red “x” icon or is listed as “unbound” in the label. Now, we have to re-add the necessary libraries. Click the “Add Library…” button and follow these steps:
Click “Apply” and “OK” when done. You should see all of the scary red icons disappear. If not, ask on Piazza or during office hours for help! Video WalkthroughThis video walkthrough will illustrate this entire process on a Mac OSX system. Alternatively, you can follow the steps in the sections below. This is an older video—some steps may not align perfectly. How do I Import a Git project?Importing Using the New Project Wizard. Click File > Import .. In the Import wizard: Click Git > Projects from Git . Click Next . Click Existing local repository and then click Next . Click Git and then click Next . In the Wizard for project import section, click Import using the New Project wizard . Click Finish .. How to add a project to Git repository in Eclipse?Create a local Git repo for your Eclipse project
With your project open in Eclipse, right-click the project name in Project Explorer and select Team, Share Project... Select Git and select Next. Select Create... from the Configure Git Repository window and choose a folder for your local Git repo. Select Finish.
How do I Import an entire project into Eclipse?Importing an Eclipse Project. Open File->Import.. Select "Existing Projects into Workspace" from the Selection Wizard.. Select Next to get the Import Wizzard. Browse to find the location of the Project.. Make sure the Project you want is checked, then hit Finish.. |