5. Quick start
5.16. JCoMod Wrapper example for CIB runshell: Calling the native CIB runshell synchronously from JAVA for a CIB Postcript job with low processing priority
package com.cib.comod.test;
String cmd = new String("cibrshux FontWorkSpace=./Fonts/ PpdFilename=./ppd/hp4050_6.ppd LicenseCompany=... LicenseKey=... –z-2 -sp ./InputFile.rtf");
Runtime rt = Runtime.getRuntime();
System.out.println("Executing " + cmd);
Process proc = rt.exec(cmd);
// any error??? and synchronize!
int exitVal = proc.waitFor();
System.out.println("ExitValue: " + exitVal);