I've created an RPGLE program and I'm trying to execute a java .jar file from within. I've been able to get it to run from the QSH so I know it compiled and runs fine, but I need to run it from the program not QSH.
Here is the code I have tried...
CALLP(e) QcmdEXC(cmd_JAVAcall:%SIZE(cmd_JAVAcall));
and cmd_JAVAcall is set to
`RUNJVA CLASS('/home/MIGPCTOOD/MIGPCTOOD.jar')
CLASSPATH('/home/MIGPCTOOD':'log4j.properties')
PARM('/home/POSPDFMON' '/home/POSONDMON')`
I also tried setting it to
'JAVA CLASS('/home/MIGPCTOOD/MIGPCTOOD.jar')
CLASSPATH('/home/MIGPCTOOD':'log4j.properties')
PARM('/home/POSPDFMON' '/home/POSONDMON')'
Neither one seems to actually launch the program but it doesnt produce and error either.
Any thoughts on how I can launch this java?