Home
Resources - Getting tools
Tutorials
Sample Code
Documents
Help

                 

 

 

Building and Running a project

Assuming you have defined a project and written one or more .java files (the Java source files that you write in the editor), building a project involves compiling the source files into .class files. For example, if you have defined a file, Game.java, then Game.class is the compiled file. When running the project, the Java runtime interpreter accesses only the .class files. Here are a few things you should know:

 

To run your project

Clicking the Run button on toolbar (an icon of a small person running) will run the most recent project that was previously run. If this is not your current project, do the following:

When running a project that writes to the console (using statements like System.out.println(..)), a console panel should open at the bottom of the Eclipse window. This will display output. If Java's Swing classes are used to output graphical windows and other widgets, these should pop up when the project is run.