Issue
In order to import the Java project in following Github repository : (https://github.com/drewhannay/paxos#setting-up-the-project-in-eclipse) and follow the steps as explained in the repository as follows:
Setting up the project in Eclipse:
- Click "New" in Eclipse
- Select "Java Project"
- Project Name: "Paxos"
- Uncheck "Use Default Location" and enter the path to this directory
- Click "Finish". Eclipse will set up the project correctly using the existing source code.
- Right click the project and click "Configure Build Path"
- Click "Add JARs..."
- Select the guava-13.0.1.jar file from the lib directory within the project
- You're done!
I have downloaded the .ZIP
file of the project and extracted it in Eclipse workspace.
I do know what does it mean by saying "enter the path to this directory" . Which directory exactly?
Solution
By "this directory" it is probably referring to the location of the cloned repository.
The cloned repository is the local copy of the repository that you have on your machine.
The simplest method is to press the "Code ▼ > Download zip" button, and extract the zip file. This method will not necessarily work for all projects.
You can alternatively install Git, and run git clone https://github.com/drewhannay/paxos.git
in the terminal. This method is better if you actually plan on modifying the project, and you will thank yourself for it later.
An easier method, that still uses Git (suggested by howlger), is to drop the link into Eclipse, and it will guide you from there. In my experience, this doesn't always work with all types of project, but it may have been fixed in newer versions.
Answered By - MrParrot