Install the Java software:
Find and run the self-extracting zip file
named jdk-6-windows-i586.exe on the disk that came with your textbook.
It should install the Java software into the folder
C:\Program Files\Java\jdk1.6.0_02
Set the path environment variable:
Select Start and Control Panel.
Select System >> Advanced Tab >> Environment Variables Button.
Find the Path variable in the System Variables box.
Click the Edit Button.
If the path to the Java executable exists, modify it to
look like this:
C:\Program Files\Java\jdk1.6.0_02\bin
If the path to the Java executable does not exist, append it to the
end of the path:
;C:\Program Files\Java\jdk1.6.0_02\bin
Note the semicolon at the beginning.
Compile and Run
Invoke the Command Prompt: Start >> All Programs >> Accessories >>
Command Prompt.
Navigate to the folder containing the source code with the
DOS cd command. Example: