How to run Java program?

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

How to run Java program?

Postby David85 » Thu Jan 24, 2013 10:53 pm

I have a java program on PC and run it using:
java -cp ProgramName.jar;ibmjzos600.jar;bcprov-jdk16-140.jar;. com.zddd.enttt.Class DIR=directory FILE=name.file
How can i run this on mianframe? I tried use a
 //           MSGLEVEL=(1,1),TIME=1440,NOTIFY=&SYSUID                     
 //PROCLIB JCLLIB ORDER=USER.JZOS.SAMPJCL                               
 //JAVA EXEC PROC=EXJZOSVM,VERSION='60',                                 
 // JAVACLS='com.zddd.enttt.Class'       
 //STDENV DD *                                                                                                                                     
 . /etc/profile                                                           
 export JAVA_HOME=/usr/lpp/java/J6.0                                     
 export PATH=/bin:"${JAVA_HOME}"/bin:                                     
 export LIBPATH="$LIBPATH":                                                   
 OPTS="$OPTS -Djzos.jdfsort.dir=${JZOS_HOME}"                             
 OPTS="$OPTS -Djzos.script.path=${JZOS_HOME}/sample"                     
 export JZOS_JVM_OPTIONS="$OPTS"                                                                 
 # Uncomment the following to add additional required jars to CLASSPATH   
 export APP_HOME=/u/user/java/programs                       
 for i in "${APP_HOME}"/*.jar; do                                         
export JAVA_DUMP_HEAP=false   
export JAVA_PROPAGATE=NO       

But I dont now how to pass parameters (FILELIST etc) to the program.
Posts: 2
Joined: Thu Jan 24, 2013 10:28 pm
Has thanked: 0 time
Been thanked: 0 time

Re: How to run Java program?

Postby dick scherrer » Thu Jan 24, 2013 11:05 pm

Hello and welcome to the froum,

Suggest you talk with your network and mainframe system support people. They can tell you how running your java on the mainframe is done or they can help with a method if one does not already exist.
Hope this helps,
User avatar
dick scherrer
Global moderator
Posts: 6268
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 93 times

Re: How to run Java program?

Postby ashima08 » Mon Jul 26, 2021 1:16 pm

IBM produces a number of z/OS mainframe Java products. ReportCenter requires a Java runtime environment at version 8 or higher.
Posts: 3
Joined: Mon Jul 26, 2021 1:01 pm
Has thanked: 0 time
Been thanked: 0 time

Re: How to run Java program?

Postby Terry Heinze » Mon Jul 26, 2021 7:09 pm

Did you notice that you replied to an 8 year old topic?
.... Terry
Terry Heinze
Posts: 239
Joined: Wed Dec 04, 2013 11:08 pm
Location: Richfield, MN, USA
Has thanked: 12 times
Been thanked: 11 times

Return to Mainframe Java


  • Related topics
    Last post