Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint
Share this Page URL
Help

Chapter 1. Using Eclipse Tools > Running Applications

1.9. Running Applications

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.

1.9.1. Launching Java applications

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).


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint