Exercise 2: Building the Project
This exercise describes how to build the Blink project. You build a project so that you can run it. When you build a project, the Java WorkShop compiles the project's Java source code into a file called filename.class.
If you haven't yet created the Blink project, you should do so now. Step-by-step instructions are in Creating a Project.
- Check the Java WorkShop tool bar for the name of the current portfolio and project.
If the current portfolio is not "personal," choose Portfolio => Choose => personal. If the current project is not Blink, choose Project => Choose => Blink.
- Click the Build Manager control
on the WorkShop tool bar.
The Build Manager opens with your Blink project loaded. Note that when you place your pointer over a tool bar control, a description of the control appears in the lower-left corner of the browser. If you do not see the description, make sure the entire footer appears on the screen.
- Click the Initiate a Build control
on the Build Manager tool bar.
The WorkShop compiles the Blink.java program into the Blink.class file of byte code. Watch the status line (on the left under the Project and File buttons) as the WorkShop builds your project. The status message will change from "Ready" to "Building" to "Build Succeeded." The word "Done" appears in the output area when your sources are finished compiling.
Next lesson:
- Exercise 3: Running the Project