# Exercise 7: Building and Running the Project

In this exercise, you will build the Calculator project. You will then generate an HTML file that runs the Calculator project.

1. Click the Build button on the main toolbar.
   Java WorkShop compiles the `Calculator.java` program into the `Calculator.class` file of bytecode. The Build tab, below the source editor, displays a "Build Succeeded" message when the build is complete. You should not get any error messages in the source code. If you mistyped one of the button names, fix the error as follows:
   1. Select the button in the layout window.
   2. Type the correct name in the name box in the attribute editor and click Apply.
   3. Rebuild the project.
2. Click the Run button on the main toolbar.
   Java WorkShop generates the HTML file `Calculator.tmp.html` in your project directory. The HTML file includes the tag, which specifies the options to use when placing the Calculator project on a web page. Java WorkShop loads the file into the applet viewer. Try out the calculator.
3. To stop the running project, choose Applet -> Quit.

Next lesson:

You have completed the exercises in this tutorial. The next tutorial is Tutorial 8: Creating the Clock Project.

More GUI builder examples:

  Exercise 1: Making Your Own Card File
  Exercise 2: Adding Behavior to the Card File
  Exercise 3: Adding a Mail Dialog, Part 1
  Exercise 4: Adding a Mail Dialog Box, Part 2