E N D
Installing Repast in the Eclipse IDE Charlie Gieseler 6/28/04
Preliminary Downloads • Download and install latest release version of Eclipse from http://eclipse.org • Download and install the latest version of RePast from http://repast.sourceforge.net • Download the GridIPD example code .zip file from http://www.courses.fas.harvard.edu/~gov2015/Tutorial/
Installing RePast in an Existing Project • First you will need an existing project • Please refer to the Eclipse documentation or other Eclipse tutorials full details of setting up a new project with existing resources • Here we will use the GridIPD project • Note: GridIPD requires the cern.jet.random in the “colt” library. This is located in RePast’s lib directory and can be added to the project in the same manner as RePast.
Project Properties • Open the existing project • Go to Project->Properties • The Properties dialog will popup • In the left pane, select “Java Build Path”. • The “Java Build Path” pane will appear to the right. • Make sure the “Libraries” tab is selected.
Adding the RePast library to the Build Path • Click the “Add External Library” button • Use the browser window to locate the RePast jar file. • Click “Open” RePast jar location [RePastHome]/lib/repast.jar
Verifying RePast library was added • If the RePast library was added to the project it will now show in the library listing. • Now click “OK” to complete the properties setup
Running the project with RePast • To run GridIPD in Eclipse, first add the colt library to the build path as done with RePast. • Go to Run->Run..
Running the project with RePast cont. • Look in the “Configurations” pane • Under “Java Applications” select the class to run. In this case it is Model for the Model.java class. • Click the “Run” button