Eclipse Tutorial - TeamCohen/ProPPR GitHub Wiki
-
Create a new Java Project in Eclipse. Name it whatever you want the final name to be. We'll call it "ProPPR"
-
Close the project (right-click and "Close Project")
-
Go to a shell and clone a fresh copy of the git repo, but call it 'tmp':
$ git clone https://github.com/TeamCohen/ProPPR.git tmp
-
Check out the most recent branch (
srw2.0
as of June 2015):$ cd tmp/
$ git checkout srw2.0
-
Copy the Eclipse dotfiles into your fresh checkout:
$ cp ~/workspace/ProPPR/.project tmp/
$ cp ~/workspace/ProPPR/.classpath tmp/
$ cp -r ~/workspace/ProPPR/.settings tmp/
-
Delete the directory created by Eclipse:
$ rm -rf ~/workspace/ProPPR
-
Move the git directory over top of where the Eclipse directory used to be:
$ mv tmp ~/workspace/ProPPR
-
Go to Eclipse and open the project. You should see the ProPPR source tree.
-
Finish setting up the classpath in Eclipse:
- Select all the .jar files in lib/ and add them to the build path
- Remove src as a source directory
- Add src/java/main as a source directory
- Add src/java/test as a source directory