I'm trying to execute java program from mainframe using JCL.But the problem is the path specification in java file. I have mentioned to read properties file from current directory "./abc.properties" in java code. But it couldn't find the properties file from current directory, even though it is there in mainframe current directory. Does this "./" notation compatible with mainframe? or any other notation i need to specify for mainframe?
Somehow i tried to mock the procedure followed in JCL here. Below is the sample jcl code which calls java program. The config(properties) files are placed in the path “/TEST/AAAA/BBBBB” .This path has added in the classpath as well, as shown below.
//JZVM01 PROC JAVACLS=, < Fully Qfied Java class..RQD
// ARGS=, < Args to Java class
// VERSION='60', < Version of JZOSVM module
// LOGLVL='+I', < Debug LVL: +I(info) +T(trc)
// REGSIZE='0M', < EXECUTION REGION SIZE
// LEPARM=''
//JAVAJVM EXEC PGM=JVMLDM&VERSION,REGION=®SIZE,
// PARM='&LEPARM/&LOGLVL &JAVACLS &ARGS'
//
export CLASSPATH="$CLASSPATH:/TEST/AAAA/BBBBB"