javaPath

fun javaPath(javaVersion: Int): Optional<String>
fun javaPath(javaVersion: String): <Error class: unknown class>

Get the path to the specified Java executable/binary, wrapped in an Optional for your convenience.

Return

The path to the Java executable/binary, if available.

Author

Griefed

Parameters

javaVersion

The Java version to acquire the path for.


Java installation used for installing the modloader server during server pack creation.