Commit f00b6d79 authored by Adrien's avatar Adrien Committed by Romain Bioteau
Browse files

fix(h2Console) fix windows issue (#295)

close BS-16214
parent 9c7c784e
......@@ -73,7 +73,8 @@ public class OpenH2ConsoleHandler {
}
protected String javaBinaryLocation() {
return Paths.get(JavaRuntime.getDefaultVMInstall().getInstallLocation().getAbsolutePath(), "bin", "java")
String binaryName = Platform.getOS().toLowerCase().contains("win") ? "java.exe" : "java";
return Paths.get(JavaRuntime.getDefaultVMInstall().getInstallLocation().getAbsolutePath(), "bin", binaryName)
.toString();
}
......
Supports Markdown
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