Run a Job with JAVA source code.

C/C++ and Java for MVS & zOS.
Previous topicNext topic

Topic Author
Raja Pasha
New Member
Posts: 1
Joined: Sun Nov 16, 2014 12:16 pm

Run a Job with JAVA source code.

Post by Raja Pasha » Thu Feb 11, 2016 2:50 pm

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.




enrico-sorichetti
Global Moderator
Global Moderator
Posts: 892
Joined: Wed Sep 11, 2013 3:57 pm

Re: Run a Job with JAVA source code.

Post by enrico-sorichetti » Thu Feb 11, 2016 3:05 pm

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 ...


cheers
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort 8-)

Previous topicNext topic

Return to “C, C++ and Java for Mainframes.”