Commit e66758d3 authored by dreis2211's avatar dreis2211 Committed by Stephane Nicoll

Explicitly set java home in CommandLineInvoker

See gh-20242
parent e73ee7b3
......@@ -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