< prev index next >
modules/jdk.packager/src/main/java/com/oracle/tools/packager/windows/WinAppBundler.java
Print this page
*** 198,208 ****
params.put(RUNTIME_AUTO_DETECT, "attempted");
String commandline;
File runtimePath = JLinkBundlerHelper.getJDKHome(params).toFile();
! File launcherPath = new File(runtimePath, "bin\\java");
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);
--- 198,208 ----
params.put(RUNTIME_AUTO_DETECT, "attempted");
String commandline;
File runtimePath = JLinkBundlerHelper.getJDKHome(params).toFile();
! 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 >