mirror of
https://github.com/corda/corda.git
synced 2024-12-28 00:38:55 +00:00
Remove ".exe" from Java executable path, because Windows doesn't need it.
This commit is contained in:
parent
4e7c12453c
commit
ba5f4add18
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user