Ivoking JAVA JAR file from Mainframe ZOS



Support for Java SE, EE & ME, JVM, JNI, JDBC, EJB, JFC, JPDA, JAAS,JCE, JAXP, XML and Java API.

Ivoking JAVA JAR file from Mainframe ZOS

Postby FelNYD » Thu Mar 11, 2021 11:41 am

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
FelNYD
 
Posts: 4
Joined: Thu Mar 11, 2021 10:53 am
Has thanked: 1 time
Been thanked: 0 time

Re: Ivoking JAVA JAR file from Mainframe ZOS

Postby enrico-sorichetti » Thu Mar 11, 2021 3:51 pm

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
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
enrico-sorichetti
Global moderator
 
Posts: 3003
Joined: Fri Apr 18, 2008 11:25 pm
Has thanked: 0 time
Been thanked: 164 times

Re: Ivoking JAVA JAR file from Mainframe ZOS

Postby FelNYD » Thu Mar 11, 2021 5:41 pm

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?
FelNYD
 
Posts: 4
Joined: Thu Mar 11, 2021 10:53 am
Has thanked: 1 time
Been thanked: 0 time

Re: Ivoking JAVA JAR file from Mainframe ZOS

Postby enrico-sorichetti » Thu Mar 11, 2021 7:05 pm

topic moved where it belongs :mrgreen:
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
enrico-sorichetti
Global moderator
 
Posts: 3003
Joined: Fri Apr 18, 2008 11:25 pm
Has thanked: 0 time
Been thanked: 164 times

Re: Ivoking JAVA JAR file from Mainframe ZOS

Postby FelNYD » Thu Mar 11, 2021 7:46 pm

enrico-sorichetti wrote:topic moved where it belongs :mrgreen:



F: can you help in here? what i am missng on .
FelNYD
 
Posts: 4
Joined: Thu Mar 11, 2021 10:53 am
Has thanked: 1 time
Been thanked: 0 time

Re: Ivoking JAVA JAR file from Mainframe ZOS

Postby enrico-sorichetti » Thu Mar 11, 2021 9:29 pm

You posted originally in the Forum rules section
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
enrico-sorichetti
Global moderator
 
Posts: 3003
Joined: Fri Apr 18, 2008 11:25 pm
Has thanked: 0 time
Been thanked: 164 times

Re: Ivoking JAVA JAR file from Mainframe ZOS

Postby enrico-sorichetti » Fri Mar 12, 2021 12:09 am

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

up to you to investigate further
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

These users thanked the author enrico-sorichetti for the post:
FelNYD (Fri Mar 12, 2021 4:02 pm)
enrico-sorichetti
Global moderator
 
Posts: 3003
Joined: Fri Apr 18, 2008 11:25 pm
Has thanked: 0 time
Been thanked: 164 times

Re: Ivoking JAVA JAR file from Mainframe ZOS

Postby FelNYD » Fri Mar 12, 2021 4:04 pm

enrico-sorichetti wrote: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.html

up to you to investigate further


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.
FelNYD
 
Posts: 4
Joined: Thu Mar 11, 2021 10:53 am
Has thanked: 1 time
Been thanked: 0 time

Re: Ivoking JAVA JAR file from Mainframe ZOS

Postby enrico-sorichetti » Fri Mar 12, 2021 4:09 pm

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
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
enrico-sorichetti
Global moderator
 
Posts: 3003
Joined: Fri Apr 18, 2008 11:25 pm
Has thanked: 0 time
Been thanked: 164 times


Return to Mainframe Java

 


  • Related topics
    Replies
    Views
    Last post