Sample Use Case

CVM cvm = CVM.GET_INSTANCE(); 
cvm.setErrorsOut("/tmp/errfile"); 
cvm.setConfigFile("c:/myproject/config"); 
cvm.initialize(); 

CALL_OPTIONS co = new CALL_OPTIONS(); 
co.setOption("debug_method", "1"); 

Object objInt = new Integer(1); 
Object objString = new String("Test String Parameter"); 
Object params[] = { 
objInt, 
objString 
};
cvm.callProgram("TestJavaToCobol", params, co); 
cvm.cancelProgram("TestJavaToCobol"); 
cvm.shutdown();