Environment variables

Use the Environment tab on the Select IBM® i Options window, or on the Create, manage, and run configurations window, to specify environment variables. A special one, CLASSPATH, is used by the Java™ Virtual Machine to locate Java class files.
  • To access the Environment tab on the Select IBM i Options window:
    • Open the IBM i Java Transform and Run view by selecting Window > Show View > Other.
    • Expand IBM i and select i Java Transform and Run.
    • Click Advanced Options to open the Select IBM i Options window, and select the Environment tab.
  • To access the Environment tab on the Create, manage, and run configurations window:
    • In the Java perspective, click the down arrow next to the run icon on the workbench toolbar and click Run.
    • Select Java Application in i Server and click the New configuration button.
    • Select the Environment tab.

Fields on the Environment tab:

Field Description
Variable The name of the environment variable. Maximum length is 128 bytes.
Value The value of the environment variable used by the Java program. The CLASSPATH value, if any, is appended to the text specified in the Classpath field in the Run remotely page. The maximum length is 1024 bytes. Possible values are *NULL, ' ' for null character.

Feedback