CS 2110 - Eclipse Tips

Eclipse is going to be the IDE (Integrated Development Environment) of choice for this course. Go ahead and get it now, but you're not required to use it until Homework 1. If you want to use JCreator or DrJava at first, that's fine. We have already put together some Eclipse distributions with the plugins needed for this class. You may download them here: To download Eclipse from the folks at Eclipse.org:
  1. First be sure that you installed an up-date-date version of the Java SDK (as above)
  2. Visit external link: http://eclipse.org
  3. Click on the orange "Download Eclipse" button
  4. Click on Eclipse IDE for Java Developers link for your operating system.
  5. What you get, specifically, when you download Eclipse is in fact a zip file. To "install" Eclipse, open the zip file and "extract" the files inside it into a new directory.
  6. You can put this new directory anywhere you like (or move it after you unzip it). For Windows users, you can put it into C:\Program Files or C:\Eclipse or anywhere else. For Mac users, you can put it in Applications or anywhere else.
You'll now have a working Eclipse installation. To run Eclipse, go to your newly created eclipse directory and double-click on the Eclipse icon. One of the best things about Eclipse is that it doesn't "install." Just copy the directory wherever you want and it still works! Your code is stored in what's called a "Workspace." Make sure you keep up with where you make your Workspaces! To make life easier, however, you can right click on this icon, select "create shortcut", then move the new shortcut to your desktop. To extract files from the Zip file, Windows XP will do this if you double-click on the Zip file from Windows Explorer (the file-browser). Or, you can download a Zip utility like WinZip (but you don't have to).
Import a zipped project into Eclipse

To do this:
  1. Download the zip file from the link and save it somewhere on either your local or net drive.
  2. Once you have your Eclipse workbench open, select File -> Import.
  3. In the pop-up window, select to import a General -> Existing Projects into Workspace and press Next.
  4. Choose "Select Archive File" (i.e. from a zip file) and choose Browse and find the zip file you downloaded.
  5. Finally, push Finish.
Once this is done, the project shows up in the project explorer.
Export your project to a zip file

To do this:
  1. Right-click on your project in the Project Explorer and choose Export.
  2. Choose General->Archive File. Click Next.
  3. In the "To archive file:" field, use the Browse button to find a location to save your zip file and to give it a name.
  4. Choose "Select Archive File" (i.e. from a zip file) and choose Browse and find the zip file you downloaded.
  5. Finally, push Finish. The zip file is where you told it to save.
You can later follow the directions above to re-import your project and pick up where you left off.