Monday, March 25, 2013


If you want to try out Eclipse, here are CSCI 0101-specifc Eclipse instructions.  General documentation is available in many places on the web.  Use a search engine to find instructions on editing, debugging, etc.  Lars Vogel has a good Eclipse tutorial.

  1. Install Eclipse: Download "Eclipse IDE for Java Developers" from  Uncompress the downloaded .zip/.tar.gz file by double-clicking on it.  Copy the uncompressed directory to Applications (Mac) or Program Files (Windows).
  2. Set up a project: Double-click on the Eclipse program.  If asked to create a workspace, the default should work fine.  Create a new project with "File > New > Project...".  Select "Java > Java Project".  Name it whatever you want and click "Finish."  Control-click (Mac) or right-click (Windows) on your project name in the left pane and select "Build Path > Link Source..."  Select the root of your Subversion working copy, which will be a directory named after your netid.
  3. Run your code: You can run a program by navigating the source file in the left pane and selecting "Run > Run".
  4. If you want to use the automatic tests, control/right-click on your project name, select "Build Path > Add External Archives...", and select every jar file in testing/lib.  Then, try to run a program like "" in the testing directory.  It will probably fail, but it will let Eclipse know it is runnable.  Next, select "Run > Run Configurations...".  Click on "Arguments", and select "Other" for a working directory.  Click "File System," and choose your Subversion working copy root as above.  Then, run it again.  This step needs to be performed once for every test you run.
If you have questions about Eclipse, please ask at lab hours or my office hours, not over email.

A warning: Eclipse "Quick Fix" is an excellent way to write code that you do not understand. I advise you not to use it.