| |
J++ 1.1 Environment
To construct and run this file in the J++ 1.1 environment, perform the following steps:
- Invoke the J++ 1.1 environment.
- Under the File menu, select New. With the Projects tab, select Java Project and
type in HiWorld as the name of the project.
- Under the File menu, select New. This time under the Files tab, select the Java
Source File option and type in HiWorld.java in the Name box.
- Type in the above code in the program window on the right.
- Under the Build menu, select Execute. Type in HiWorld as the Class File Name and
select the Stand-Alone Interpreter option.
If you did everything properly, you will see a DOS window appear on your screen briefly
with the message "Hi" in it. The DOS window will then disappear. If
you wish to see the output for a longer period of time, pull up a DOS window, go to the
proper directory, and type in the name of the executable.
|