Building Projects

Use the WorkShop program builder to build Java programs easily and conveniently.

You can use the WorkShop builder to build either a project or a single file:

To build a program:

  1. Decide whether you are building a project, or a single file.
  2. Specify the name of the project or file in one of two ways:
  3. Start the build by clicking on the build button in the local tool bar.
  4. As the build proceeds, the command line passed to the javac compiler is displayed in the build output display. This information consists of: If the build completes without encountering any errors, the message "Build Succeeded" is reported just above the build output display.

    If there are errors, they are reported in the output display.

To stop a build before it completes, click on the Stop build control in the tool bar.

To correct syntax errors reported during compilation:

  1. Click on the name of the file in the compiler error message. This automatically loads the file that contains the error into the WorkShop source editor. The line containing the error is centered and highlighted.

    A message is issued in the build output display for each error. Error messages have the following components:

  2. If necessary, check the file out from the version control system.
  3. Fix the errors using the source editor, and save the file.
  4. When you have fixed all of the errors, click on the Build control in the local tool bar to restart the build.


See also:

Editing Source
Debugging Projects
What Is a Project?