CL Command Reference - JAVA
CL Command List > JAVA Reference
Description:
The Run Java Program (JAVA) command runs the Java program associated with the specified Java class. If no Java program exists, one is created and associated with the class file.
This command can operate on files in any file system that supports the integrated file system APIs.
Examples:
Example 1: Run a Java Program
JAVA CLASS(¡¯projectA.myJavaclassname¡¯)
This command will run the iSeries Java program associated with the class myJavaclassname. The job name of the batch immediate (BCI) job where the Java program will run will be QJVACMDSRV.
Example 2: Generate the Job Name for the Java Program
JAVA CLASS(¡¯projectA.myJavaclassname¡¯) JOB(*GEN)
This command will run the iSeries Java program associated with the class myJavaclassname. The job name of the batch immediate (BCI) job where the Java program will run will be MYJAVACLAS.