Remove ".exe" from Java executable path, because Windows doesn't need it.

This commit is contained in:
Chris Rankin 2017-02-06 17:10:52 +00:00
parent 4e7c12453c
commit ba5f4add18

View File

@ -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)