From ba5f4add18756868b957a06380c5e0f99ceb0b01 Mon Sep 17 00:00:00 2001 From: Chris Rankin Date: Mon, 6 Feb 2017 17:10:52 +0000 Subject: [PATCH] Remove ".exe" from Java executable path, because Windows doesn't need it. --- .../src/main/kotlin/net/corda/demobench/model/JVMConfig.kt | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/tools/demobench/src/main/kotlin/net/corda/demobench/model/JVMConfig.kt b/tools/demobench/src/main/kotlin/net/corda/demobench/model/JVMConfig.kt index 36242ea7df..64dd0fa0b2 100644 --- a/tools/demobench/src/main/kotlin/net/corda/demobench/model/JVMConfig.kt +++ b/tools/demobench/src/main/kotlin/net/corda/demobench/model/JVMConfig.kt @@ -1,15 +1,12 @@ package net.corda.demobench.model -import com.jediterm.terminal.ui.UIUtil import java.nio.file.Path import java.nio.file.Paths import tornadofx.Controller class JVMConfig : Controller() { - private val javaExe = if (UIUtil.isWindows) "java.exe" else "java" - - val javaPath: Path = Paths.get(System.getProperty("java.home"), "bin", javaExe) + val javaPath: Path = Paths.get(System.getProperty("java.home"), "bin", "java") init { log.info("Java executable: " + javaPath)