Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
Any Java application with a main() method, including the .java file created in Section 1.4.4, Using the Java Class wizard, on page 24 and enhanced in Section 1.7.2, Templates, on page 40, is marked with the runnable icon decoration (a small green triangle), indicating that it is runnable. This section shows the different ways to launch (run) a Java application.
The easiest way to run a Java application is to select the class and then select the Run As > Java Application command (Ctrl+Shift+X, J) from the Run menu or from the
Run toolbar button (see Figure 1-62). This executes the main() method of the application and writes any output (in black) and error text (in red) to the Console view (see Figure 1-63).