One more attempt to fix jvm-util.ts to work better on Windows

This commit is contained in:
Kris De Volder
2018-02-06 14:03:04 -08:00
parent 07ca259445
commit f8891a4e8d

View File

@@ -86,7 +86,7 @@ export function findJdk(javaHome?: string) : Promise<JVM | null> {
let altHome = Path.join(Path.dirname(jhome), altBasename);
console.log("altHome = ", altHome);
if (FS.existsSync(altHome)) {
let altExe = Path.resolve(altHome, Path.relative(jhome, javaExe));
let altExe = Path.resolve(altHome, "bin", correctBinname("java"));
console.log("altExe = ", altExe);
return new JVMImpl(altHome, altExe, jvm.getMajorVersion());
}