Skip to content

Commit

Permalink
Merge pull request #381 from gnodet/i380
Browse files Browse the repository at this point in the history
The update of the environment does not work with jdk 16, fixes #380
  • Loading branch information
gnodet committed Mar 19, 2021
2 parents c022c38 + 74ebee0 commit 8d8e2fb
Showing 1 changed file with 5 additions and 1 deletion.
Expand Up @@ -375,7 +375,11 @@ private Process startDaemonProcess(String daemonId) {

LOGGER.debug("Starting daemon process: id = {}, workingDir = {}, daemonArgs: {}", daemonId, workingDir, command);
ProcessBuilder.Redirect redirect = ProcessBuilder.Redirect.appendTo(parameters.daemonOutLog(daemonId).toFile());
Process process = new ProcessBuilder()
ProcessBuilder processBuilder = new ProcessBuilder();
processBuilder.environment()
.put("JDK_JAVA_OPTIONS",
"--add-opens java.base/java.lang=ALL-UNNAMED --add-opens java.base/java.util=ALL-UNNAMED");
Process process = processBuilder
.directory(workingDir.toFile())
.command(args)
.redirectOutput(redirect)
Expand Down

0 comments on commit 8d8e2fb

Please sign in to comment.