When using the following code snippet to execute from within Java I receive an Exception message with the following error message:
Code: Select all
Error: Could not launch TESTJOB. Message is :Child creation error: error
100052. VMS error code: error 100052
import java.lang.*;
public class Example1
public static void main(String args[])
{
int ExitCode=0;
try
{
Runtime r = Runtime.getRuntime();
System.out.println("Executing TESTJOB");
Process p =
r.exec("@OVMS01$DKA100:[SYS0.SYSMGR.TEST]TESTJOB");
ExitCode = p.waitFor();
}
catch (Exception ex)
{
System.out.println("Error: Could not launch TESTJOB.
Error Message is :" + ex.getMessage());
}
}