Commit 7747ad60 authored by Stephane Nicoll's avatar Stephane Nicoll

Merge pull request #20242 from dreis2211

* pr/20242:
  Explicitly set java home in CommandLineInvoker

Closes gh-20242
parents e73ee7b3 e66758d3
......@@ -76,6 +76,7 @@ public final class CommandLineInvoker {
command.addAll(Arrays.asList(args));
ProcessBuilder processBuilder = new ProcessBuilder(command).directory(this.workingDirectory);
processBuilder.environment().put("JAVA_OPTS", "-Duser.home=" + this.temp);
processBuilder.environment().put("JAVA_HOME", System.getProperty("java.home"));
return processBuilder.start();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment