COMP 110-001 - Introduction to Programming (Spring 2009)

Lab 0: Getting Started with jGRASP

10 points

Assigned: January 16th

Due: January 22nd by midnight

Part 1: Installing the JDK and jGRASP

To properly install jGRASP, you'll need to download and install both the Java Development Kit (JDK) and jGRASP.

If you are using Mac OS X, the Java Development Kit (JDK) should already be installed, so you can move on to Installing jGRASP. If you are using Windows, read on.

Uninstalling the old version of the JDK

If you previously installed an older version of the JDK, you will need to uninstall this software. Go to Start -> Control Panel -> Add or Remove Programs and click on the version of the JDK you want to uninstall. Click remove. A box will appear, click Yes to continue uninstalling the software. You may then be asked to reboot your computer. Once you have successfully uninstalled the older version of the JDK, proceed with the rest of the instructions.

Installing the JDK

If you have not already downloaded the Java SDK installer, download jdk-6u7-windows-i586-p.exe to your Desktop (it's a large file, 77MB). Double-click on the file once it's on your Desktop, and the script will take you through the steps for installing the Java SDK.

Steps

Installing jGRASP

If you have not already downloaded the jGRASP installer, download jgrasp186_09.exe (Windows only) or jgrasp186_09.pkg.tar.gz. Then follow the installation instructions for either Windows or Mac OS X given in jGRASP Tutorial chapter 1, paying attention to the following notes:

When you have completed the installation, you should find the jGRASP icon on your Desktop. In Windows, jGRASP should also be listed in the Start Menu.

Once you have successfully installed the JDK and jGRASP, you can delete jgrasp186_09.exe (or jgrasp186_09.pkg.tar.gz) and jdk-6u7-windows-i586-p.exe from your computer.

Part 2: Starting jGRASP the First Time

Double-click on the jGRASP icon on your Desktop to start jGRASP. You may get a message saying that there is a newer version of jGRASP available online. It's ok, just ignore that message.
There are a couple of settings that you need to change the first time you run jGRASP. You only need to follow these steps once. It would be a good idea for you to read the Getting Started chapter of the jGRASP documentation through 2.4.

Part 3: Your First Java Program

You will now compile and run your first Java program.

Part 4: Submission

After you have compiled "FirstProgram.java" in Part 3, a file called "FirstProgram.class" will have been created by jGRASP in your "COMP110" directory.

Submit "FirstProgram.java" and "FirstProgram.class" via the UNC Blackboard System before the deadline.

Grading