< prev index next >
modules/jdk.packager/src/main/java/com/oracle/tools/packager/windows/WinAppBundler.java
Print this page
@@ -198,11 +198,11 @@
params.put(RUNTIME_AUTO_DETECT, "attempted");
String commandline;
File runtimePath = JLinkBundlerHelper.getJDKHome(params).toFile();
- File launcherPath = new File(runtimePath, "bin\\java");
+ File launcherPath = new File(runtimePath, "bin\\java.exe");
ProcessBuilder pb = new ProcessBuilder(launcherPath.getAbsolutePath(), "-version");
try (ByteArrayOutputStream baos = new ByteArrayOutputStream()) {
try (PrintStream pout = new PrintStream(baos)) {
IOUtils.exec(pb, Log.isDebug(), true, pout);
< prev index next >