Installing and Using jGRASP to create a simple Java Project
University of Akron - Introduction to Computer Science
Additional help can be found at the jGRASP
site.
-
From the jGRASP File Menu,
select New
File and select Java as the type of file.
-
-
This will open a new
edit window
where the Java program can be entered. This diagram shows a
completed sample program. You should enter this program. Be careful to use upper
and lower case letters as shown.
-
- It is always a good
idea to save
files before doing too many things.
This gives the file a name and location on the disk. Choose the Save
As... item on the File menu.
-
-
It is common to
group related
files in a folder. In the Save dialog, navigate to a convenient location. You will be
creating a folder for the Hello World program file. You can create
folders by clicking the Create New Folder
icon and then
renaming the 'New Folder' to something more meaningful (you do this by
clicking on the folder until the name is highlighted for editing and then typing
a new name).
-
-
Double-click the
folder name to
open it (as the location you want to save the file) and enter the
filename HelloWorld.Then click Save.
-

-
To compile the
program, click
the compile button
(the green plus) at the top of the
editor window. Compiler
messages appear in the lower part of the jGRASP desktop
-
-
If you click the
Browse icon
, the browse window will show the
folder containing the file.
Note the appearance of a class file (the compiled version of your
program).
-
-
Run the program by
clicking the
red running person icon.
Output appears at the bottom of
the desktop.
-