This document answers questions particularly related to the use of Eclipse in CS 51 at Pomona College. The official Eclipse FAQ is available from eclipse.org.
There are several things you need to do to install Eclipse on your computer:
Only a few features from Java 5 are used in this course, so using Java 1.4.2 should not be a problem.
First you should make sure the project you wish to add the class to is selected in the Package Explorer. Then there are two options. You can open the "File" menu, select "New" and then "Class" from the submenu. Alternatively you can click on the "C" icon just above the line separating the "Package Explorer" and "Editor" panes. You can also use the menu next to the "C" to select "Interface" if that is what you want to create.
When a new dialog box appears, make sure that the name of the project is listed as the "Source folder". If not, use the browse button to find the correct project. In the "Name" field, type the name of the new class. While you can add information in the "Superclass" and "Interfaces" fields, it is often simpler just to add it yourself after the class has been created. Click on "Finish" to finish creating the new class as part of your project.
The following technique can be used to import any type of file into an Eclipse project, not just image and sound files. The files will be copied into the project.