Skip to main content.

GitHub Education Set Up

Below are the directions for setting up the project in Eclipse. Adapt as appropriate for your favorite IDE. I tested this on my Mac. We may need to adapt the instructions for other OSs/set ups.

There are likely other ways that will work. However, I was having trouble with the other ways that I thought should work. Try this first.

Set up your team

Follow the link provided in email to get to the assignment. You should be able to create a new team or join an existing team.

View the Repository for your team, and copy the link shown when you click the green "Clone or download" button.

Cloning Your Repository

  1. Go to the Git Repositories View: Window → Show View → Other → Git Repositories.
  2. Click the icon to "Clone a Git Repository ..."
  3. In the dialog, enter the URI for your team's repository that you copied above and follow the dialogue. The defaults should be fine. Use your GitHub username/password.

In the Git Repositories view, you should now see your team's repository.

Importing the Project

In the Git Repositories view, expand your team's repository, select Working Tree (or perhaps Working Directory on Windows), right-click and select Import Projects. The project WebServerStart will be created (that's the name I used to distinguish the WebServerStart code from my WebServer code). Please change the project's name to what works best for you.

Configuring the Project

I didn't have issues with this for Tiny Bookstore because we're using Maven instead.

You'll likely have errors in the project after importing.

  1. Right-click on the project, go to Build Path → Configure Build Path
  2. Click the Source tab.
  3. I didn't have to change anything -- the src directory was already there. I just had to click Apply and things worked.
  4. If you still have compiler errors, in the Build Path → Configure Build Path, click on the Libraries tab, and select Add Library and then JRE System Library and select the appropriate library.

FAQ

I keep getting 401 Authorization Errors in Eclipse
Make sure that you're using your GitHub credentials. If that's not the issue, you may need to update Eclipse. (You may want to do that regardless.) You could install the latest version of Eclipse (Oxygen) or upgrade the version of Eclipse that you're using, under Help -> Check for Updates.