0% found this document useful (0 votes)
220 views20 pages

JDK and Jgrasp Installation Instructions - Updated 11-3

The document provides instructions for installing a Java Development Kit (JDK) and Integrated Development Environment (IDE) called jGrasp on a personal computer. It then gives steps to create a simple "Hello World" Java program using these tools. The instructions are divided into sections on downloading and installing the JDK and jGrasp, followed by steps to create and run a new Java file containing the sample code. It also shows how to correct a simple source code error.

Uploaded by

fhuamancaja
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
220 views20 pages

JDK and Jgrasp Installation Instructions - Updated 11-3

The document provides instructions for installing a Java Development Kit (JDK) and Integrated Development Environment (IDE) called jGrasp on a personal computer. It then gives steps to create a simple "Hello World" Java program using these tools. The instructions are divided into sections on downloading and installing the JDK and jGrasp, followed by steps to create and run a new Java file containing the sample code. It also shows how to correct a simple source code error.

Uploaded by

fhuamancaja
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 20

JDK and IDE Installation Instructions

Objectives
Install a Java Development Kit (JDK) and an Integrated Development Environment (IDE) on a personal computer. Create a Java program.

Description
In this exercise you will download a JDK and an IDE to your personal computer. You will use these tools to create Lab 1. The project is divided into three sections: 1. Downloading the JDK 2. Downloading the IDE (jGrasp) 3. Creating your first program

Academic Requirements
To successfully complete this project you should read the following chapters in your book: 1. Introduction to Computers and Java 2. Java Fundamentals

JDK Installation
1. Go to http://www.oracle.com/technetwork/java/javase/downloads/index.html 2. Download the JDK:

3. Accept License Agreement. Download Windows x86 version (32 Bit).

Complete the installation process as directed on the screen. Follow the instructions for downloading the jGrasp. Complete the lab as instructed.

jGrasp Installation Instructions


1. Go to www.jgrasp.org. On the home page click the Download jGRASP icon.

2. Scroll down on the Download page. Click the jGrasp.exe button.

3. Click the Run button on the File Download window.

4. Click Next on the jGrasp Setup window.

5. Accept the License Agreement on the jGrasp Setup window.

6. Click Next on the jGrasp Setup window.

7. Click Next on the jGrasp Setup window.

8. Click Next on the Start Menu Folder window.

9. Press the Install button on the jGrasp Setup window.

10.Click Finish on the jGrasp Setup window.

11.You will see the jGrasp icon on your desktop.

Programming Challenge 1: Your First Java Program


1. Create a Java folder on your desktop (or any storage device of your choice). Right click on an empty space on the desktop. Click New.

2. Click Folder.

3. Create a new folder named Java Program Files.

4. Open jGrasp.

5. Maximize your screen.

6. Click File on the Menu bar.

7. Click New.

8. Click Java.

9. Maximize the jGrasp CSD window

10.Type the following text. Use the correct punctuation and capitalization. You can see the code in your book: Programming Challenge 1.

11.Click File on the Menu bar. Click Save As on the File menu. Save the program using the name MyFirstProgram_Firstname_Lastname.java.

12.Under Look in, on the Save As window, use the arrow to change to the Desktop where you created the Java Program Files folder.

13.Open the Java Program Files folder on the Save As window.

14.Click the Save button on the Save As window.

15.Compile Your Program. Click the Compile icon.

You will see the following messge in the Compile Message window if the compile was successful.

16.Run Your Program. Click the Run icon.

You will see Hello World in the Run I/O window.

Correcting Source Code Errors


The following instructions will demonstrate how to correct a source code error. In this exercise I will spell void as vodi to generate an error message. 1. If necessary, clear the I/O window.

2. Change the word void to vodi.

3. Click the Toggle Numbers icon to add numbers to each line (you can also click this icon before writing code for any program).

4. Compile your program. The following error is generated:

Please note: The error message identifies Line 4 as the location for the error. Certain errors may not be identified on the exact line where the error is located. You should look in the area above or below the line to locate the error.

5. Make the correction to the program code. Compile the program. Run the program.

You might also like