Please review the jpackage fix for bug [1] at [2].This is still a workaround for JDK-8236825. Implemented as per Roger suggestion to redirect output to temp file. I did a lot of testing using repro case and was not able to reproduce hang anymore.
[1] https://bugs.openjdk.java.net/browse/JDK-8236282 [2] http://cr.openjdk.java.net/~almatvee/8236282/webrev.01/ Thanks, Alexander