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.
- Select Open Run Dialog... from the Run menu.
- 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.
- 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.
- Choose "New -> Class" from the "File" menu.
- In the "Name:" field, type the name of your new class. Remember
to begin all class names with a capital letter.
- 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?"
- 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.