Running your first Hello World Java program

This topic will help you to run your first Java™ program.

You can get your Hello World Java program up and running in either of these ways:

  1. You can simply run the Hello World Java program that was shipped with the IBM® Developer Kit for Java.

    To run the program that is included, perform the following steps:

    1. Check that the IBM Developer Kit for Java is installed by entering the Go Licensed Program (GO LICPGM) command. Then, select option 10 (Displayed installed licensed programs). Verify that licensed program 5761-JV1 *BASE and at least one of the options are listed as installed.
    2. Enter Start of changejava QIBMHelloEnd of change on the IBM i Main Menu command line. Press Enter to run the Hello World Java program.
    3. If the IBM Developer Kit for Java was installed correctly, Start of changeQIBMHelloEnd of change appears in the Java Shell Display. Press F3 (Exit) or F12 (Exit) to return to the command entry display.
    4. If the Hello World class does not run, check to see that the installation was completed successfully, or see Getting support for Java on IBM i for service information.
  2. You can also run your own Hello Java program. For more information about how to create your own Hello Java program, see Creating, compiling, and running a HelloWorld Java program.