Page 1 of 1
Ivoking JAVA JAR file from Mainframe ZOS
Posted: Thu Mar 11, 2021 11:41 am
by FelNYD
Hi Team,
i need a help in workaround for a requirement where i have to invoke a java jar file from Mainframe using jcl
requirement is to invoke jar file , also if possible passing arguments thorugh JCL and then whatever the result is to copy into mainframe datasets in next step.
what i teh required enviorenment set up or class i would require to call the java jar file.
Also how to get started and pre-reequisites for this requirement. If anyone here can just give me a reference code and explanation on it.
Thanks,
FelDNY
Re: Ivoking JAVA JAR file from Mainframe ZOS
Posted: Thu Mar 11, 2021 3:51 pm
by enrico-sorichetti
IBM Redbooks are the most useful source of information for such queries
a staring point would be a google search with
ibm redbooks java
also googling with something like
zos executing a jar container from jcl
will return quite a bit of informations
Re: Ivoking JAVA JAR file from Mainframe ZOS
Posted: Thu Mar 11, 2021 5:41 pm
by FelNYD
enrico-sorichetti wrote:IBM Redbooks are the most useful source of information for such queries
a staring point would be a google search with
ibm redbooks java
also googling with something like
zos executing a jar container from jcl
will return quite a bit of informations
f: THANKS !
m trying to use BPXBATCH utility , invoking jar via shell, how do i get in Zos unix framework
i tried entering OMVS at beginning but no luck .
i need to create a STDOUT file in the BPXBATCH step, m stuck here. How do i create path?
Re: Ivoking JAVA JAR file from Mainframe ZOS
Posted: Thu Mar 11, 2021 7:05 pm
by enrico-sorichetti
topic moved where it belongs

Re: Ivoking JAVA JAR file from Mainframe ZOS
Posted: Thu Mar 11, 2021 7:46 pm
by FelNYD
enrico-sorichetti wrote:topic moved where it belongs

F: can you help in here? what i am missng on .
Re: Ivoking JAVA JAR file from Mainframe ZOS
Posted: Thu Mar 11, 2021 9:29 pm
by enrico-sorichetti
You posted originally in the Forum rules section
Re: Ivoking JAVA JAR file from Mainframe ZOS
Posted: Fri Mar 12, 2021 12:09 am
by enrico-sorichetti
what happened when you googled with
"zos icl example to run java jar"
I got many links that answered your question
for example
https://www.ibm.com/developerworks/syst ... atchz.htmlup to you to investigate further
Re: Ivoking JAVA JAR file from Mainframe ZOS
Posted: Fri Mar 12, 2021 4:04 pm
by FelNYD
F:
i tried and created JCL using utility, i am facing one issue, wile executing the script which calls the jar file
java.sh
java -jar /tmp/java-test.jar
error in spool:
.¦/./..¦/...._..¦/./......¦/.: /tmp/javarun.sh 1: FSUM7351 not found
can you please guide what parameter i need to change.
Re: Ivoking JAVA JAR file from Mainframe ZOS
Posted: Fri Mar 12, 2021 4:09 pm
by enrico-sorichetti
the message hints that something was not found
time to get your support involved
we do not belong to your organisation and we do not know your setup