<<

Lab 1.6.3 Exploring BlueJ Tutorial

Estimated Time 30 minutes

Learning Objective In this lab activity, the student will explore BlueJ by working through the tutorial that is provided with the IDE.

Description/Scenario • The BlueJ Integrated Development Environment (IDE) is used to build programs. It is important to that the BlueJ program merely makes the process of editing, compiling, and running programs easier and faster than using the command line. BlueJ automates several of the tasks for the . In order to compile a Java program, BlueJ still uses the javac program. An example of this was done when compiling the HelloStudent program from the command line. BlueJ also uses the same JVM (java) that has been used at the console window when it is told to run a program. • BlueJ has an online tutorial that is simple to follow and well written. However, some terms that are specific to Java may be encountered. Some of these terms have not been covered because the tutorial assumes the reader is an accomplished Java programmer. Do not worry about these terms for now. They will become familiar as the course proceeds.

1 - 6 Fundamentals of Java Programming Lab 1.6.3 Copyright  2004, Cisco Systems, Inc. Tasks

Step 1 Opening BlueJ a. Locate the BlueJ shortcut on the desktop.

b. Double-click the BlueJ icon in order to start BlueJ. . In the opening window, move to the far right of the menu bar and select Help.

2 - 6 Fundamentals of Java Programming Lab 1.6.3 Copyright  2004, Cisco Systems, Inc. Step 2 Starting BlueJ tutorial a. In the popup list, select BlueJ Tutorial and start the tutorial. Note: If the Internet connection is not available, the tutorial pdf is available in the resource folder c:\javacourse\resource.

b. After selecting tutorial, the web connection is made and the tutorial will be made available through the use of an Adobe pdf file. Note: Adobe Acrobat Reader is required to view this file, see www.adobe.com/acrobat for additional information.

3 - 6 Fundamentals of Java Programming Lab 1.6.3 Copyright  2004, Cisco Systems, Inc.

Step 3 Review Questions a. Read the Foreword section and answer the following questions: 1. Who designed and implemented BlueJ?

2. Who has the copyright for BlueJ?

b. Read the Getting Started section and answer the following questions: 1. What version of Java JDK must be used with BlueJ?

4 - 6 Fundamentals of Java Programming Lab 1.6.3 Copyright  2004, Cisco Systems, Inc.

2. What is the meaning of JDK?

3. What is the meaning of SDK?

4. What is the meaning of JRE ?

5. How is BlueJ started at the command line?

c. Read the Basic- edit/compile/execute section and answer the following questions: 1. Where is the examples directory located?

2. What method is used to start an application?

3. How is the editor opened for a class?

4. How is a class compiled?

5 - 6 Fundamentals of Java Programming Lab 1.6.3 Copyright  2004, Cisco Systems, Inc.

5. How is an application executed?

6 - 6 Fundamentals of Java Programming Lab 1.6.3 Copyright  2004, Cisco Systems, Inc.