How to Setup Eclipse for your 131B Project (Rev. 2.3 - Windows fix at bottom) ----------------------------------------------------------------------------- There are two basic ways in which you can go about working on your complier project this quarter. First is the tried and true, your favorite editor and make. Second, for your enjoyment Eclipse has been installed on ieng9. Eclipse is a nice IDE (Integrated Development Environment) written in Java. The rest of this document is a straightforward method to get the starter code up and running with Eclipse. Eclipse is also available for Linux and Windows. As of the writing of this document the project doesn't currently build under Windows(works now. see note at bottom of file). If a solution is found notice will be posted to the web board. If *you* find a solution, please let us know. To start Eclipse from your ACS account, after preping cs131f, simply type 'prep eclipse' on your terminal. This *starts* Eclipse. Start by untar-ing the project. Then from the File menu select New -> Project Type of project 'Java' then 'Ok' Then enter your "Project name", for example, "cse131b" Then click Finish. After clicking the Finish button you will get a window to Confirm Perspective Switch to Java Project. Now to import the project, select Import from the File menu. Then enter the path to your freshly untared starter code in the 'From Dir:' box. And select the folder to import into, 'Into Folder:' e.g., cse131b and then select 'Finish' Now you can build the project for the first time. Right click on Project (cse131b), select 'Properties', then 'External Build Tools', then select 'Java Builder' from the menu and click 'New', 'Ant Build' should be selected. If not, select it and click 'Ok'. For the 'Location:' field select 'Browse Workspace' then click on your folder and you should see 'build.xml' in the right window, select it. For 'Base Directory:' again select 'Browse Workspace' and select your project folder, then 'Ok' and 'Ok' again. Now for the first build(windows users see note first) right click 'Default package', then select 'package->Refresh' Then from the menu select 'Project' and finally 'Rebuild Project' and the project should begin to build. In the 'Console' you should see the results from the ant build. It should be error free; if not, try refreshing and rebuilding again. It usually takes two builds on a fresh install If that still fails go into the directory and run the make file. Windows note: One more step to get the project to build under windows. go to Window -> Preferences Expand 'Ant' and select Runtime choose 'Add Jars...' on the 'Classpath' tab select the 'tools.jar' file located in path_to_where_you_installed_java/lib