I have this java application and ran into a requirement to parse an STDF.
Actually all I needed is to get the FAR,MIR and MRR sections of an stdf file. There exists
You should perhaps call p.waitFor();
so that your Java program doesn't move on until after the external process has finished executing.
Update 1: Also make sure you are reading all the bytes out of p.getErrorStream()
and p.getInputStream()
. Failure to do so may hang the process.
Update 2: You may also want to check the process return code for an error code. The process return code is accessed via waitFor()
's return value.