Run your first Hello World Java program

This topic will help you to run your first 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 5722-JV1 *BASE and at least one of the options are listed as installed.
    2. Enter java Hello on the iSeries™ Main Menu command line. Press Enter to run the Hello World Java program.
    3. If the IBM Developer Kit for Java was installed correctly, Hello World 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 Get support for the IBM Developer Kit for Java 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 Create, compile, and run a Hello World Java program.
Related concepts
Create a directory on your iSeries server
Related tasks
Install IBM Developer Kit for Java
Map a network drive to your iSeries server
Create, compile, and run a HelloWorld Java program
Related reference
Create and edit Java source files