Page 1 of 1

Run a Job with JAVA source code.

Posted: Thu Feb 11, 2016 2:50 pm
by Raja Pasha
Hi

I am trying to execute the below Job. JVMLDM76 is system supplied program.

Code: Select all

//JAVAHELO JOB 'Test JAVA',REGION=0M,CLASS=A,
//           NOTIFY=&SYSUID                                      
//JOMVS EXEC PGM=JVMLDM76,REGION=0M
//STEPLIB  DD DSN=*.**.XYZ.LINKLIB.PDSE,DISP=SHR  
//SYSIN    DD  *                                         
/* program */                                
  public class JHelloWorld                              
  {                                                     
     public static void main(String args[])              
     {                                                  
        System.out.println("Hello World!");                 
     }                                                  
  }                                                    
//*                                                      
//STDOUT   DD SYSOUT=*                                   
//SYSPRINT DD SYSOUT=*                                   
//*     
But the I got the below error:

Code: Select all

' No java class name argument supplied. Jzos batch launcher failed, return code=101 '
Please sugest how can I solve it.

Re: Run a Job with JAVA source code.

Posted: Thu Feb 11, 2016 3:05 pm
by enrico-sorichetti
Please sugest how can I solve it.
did You do Your homework before asking for help :x
looks like NOT, read how to use the java batch launcher here
http://publibz.boulder.ibm.com/epubs/pdf/ajvc0114.pdf
chapter 3

but You could have found out the link Yourself with a plan simple google search using JVMLDM76 DOC
that what I did ...