Select one of the following items in the Run menu:
- Run→ Run Last Launched
Runs the last launched program
- Run→ Run History
Enables you to select programs to run from a submenu
- Run→ Run As
Enables you to select how to run a program—with the Java Applet, Java Application, JUnit Test (discussed in Chapter 5), or Run-time Workbench
- Run→ Run
Enables you to set the launch configuration and run your code
Before running your code, save your files, or Eclipse will prompt you to do so. The general way to run your code is to select Run→ Run As, and then choose the way you want to run your code from the submenu: Java Applet, Java Application, JUnit Test, or Run-time Workbench (used to run plug-ins under development).
Chapter 5 on JUnit testing; Chapter 2 of Eclipse (O’Reilly).
Get Eclipse Cookbook now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.