Step 4: How to build and run your project

Launch Config Create Edit Run previous step

This step will show you how to compile and run your Java program in Eclipse. Be sure to read the whole document!
Before you begin, make sure the text in your editor window is exactly the same as the text in the previous step.
  1. Go to the left Package Explorer pane. The HelloWorld folder should be opened, but if it is not, double-click on folder to open it. Then, double click on the "(default package)" to access the HelloWorld.java file. Right-click on the file and select Run As → Java Application, as in the following image:
    Run Application

    Once you run the HelloWorld program, you should notice output in the Console pane:
    HelloWorld Output
    Note that you may have to click on the tab labeled "Console" to see this output.

Launch Config Create Edit Run previous step


Original version created by Deb Deppeler and Sue Hazlett
Updated for Eclipse by Martin Hock
Updated for lab section use by Beck Hasti
2008-2012 Updated by Jim Skrentny
2014 Updated for v4.4 and added Editor Preferences by Deb Deppeler