Supplemental Eclipse instructions

Changing the main class

This is something you want to designate a different class as containing the main method to be executed when you run the project.

  1. Select Open Run Dialog... from the Run menu.

  2. Your project should be selected in the pane on the left. Next to the "Main class:" text field click the "Search..." button and locate the new main class.

  3. Click "Apply" to apply the new changes. You can also run your project from here.

Adding a new class to your project

Follow these instructions when you want to a new class to your project.

  1. Choose "New -> Class" from the "File" menu.

  2. In the "Name:" field, type the name of your new class. Remember to begin all class names with a capital letter.

  3. OPTIONAL: If your new class is to contain a main method, you may check the "public static void main(String[] args)" checkbox under "Which method stubs would you like to create?"

  4. Click "Finish".

Notice that by creating a class in this fashion, Eclipse will fill in all the headers (i.e. "public class..." or "public static void main...") that you need.