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

Hi
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 FILELIST=file.name OUTFILE=file.name DIR=directory FILE=name.file
How can i run this on mianframe? I tried use a
 //JTEST3 JOB David,CLASS=A,MSGCLASS=X,REGION=200M,USER=USER,            J
 //           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                                     
 JZOS_HOME=/u/user/java/jzos                                             
 export PATH=/bin:"${JAVA_HOME}"/bin:                                     
                                                                         
 LIBPATH=/lib:/usr/lib:"${JAVA_HOME}"/bin                                 
 LIBPATH="$LIBPATH":"${JAVA_HOME}"/lib/s390                               
 LIBPATH="$LIBPATH":"${JAVA_HOME}"/lib/s390/j9vm                         
 LIBPATH="$LIBPATH":"${JAVA_HOME}"/bin/classic                           
 LIBPATH="$LIBPATH":"${JZOS_HOME}"                                       
 export LIBPATH="$LIBPATH":                                                   
 OPTS="-Djava.ext.dirs=${JZOS_HOME}:${JAVA_HOME}/lib/ext"                 
 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                                         
 CLASSPATH="$CLASSPATH":"$i"
 done                     
 export CLASSPATH="$CLASSPATH":
 export IBM_JAVA_OPTIONS="$IJO "
                               
export JAVA_DUMP_HEAP=false   
export JAVA_PROPAGATE=NO       
export IBM_JAVA_ZOS_TDUMP=NO 

But I dont now how to pass parameters (FILELIST etc) to the program.
David85
 
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,
d.sch.
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.
https://www.yatharthmarketing.com/sales-training-programs.html
ashima08
 
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
    Replies
    Views
    Last post