I modified some of the suggestions I found in this questions and this one to get the code snippet below, the challenge is that it runs without error, but does not extract the content of the release.zip, any pointers to what I am missing?
public static void main(String[] args) throws IOException, InterruptedException{
/* Unzip the release */
File folder = new File("./input/");
ProcessBuilder pb = new ProcessBuilder(
"C:/Program Files/7-Zip/7z.exe",
"x",
"./input/matsimInput/release.zip",
"new");
pb.directory(folder);
pb.redirectErrorStream(true);
Process pbProcess = null;
int pbExitCode = 1;
pbProcess = pb.start();
pbExitCode = pbProcess.waitFor();
if(pbExitCode != 0) {
throw new RuntimeException("Could not unzip release for MATSim run");
}
}