acquireJavaPath

fun acquireJavaPath(pathToJava: String? = null): String

Check the given path to a Java installation for validity and return it, if it is valid. If the passed path is a UNIX symlink or Windows lnk, it is resolved, then returned. If the passed path is considered invalid, the system default is acquired and returned.

Return

Returns the path to the Java installation. If user input was incorrect, SPC will try to acquire the path automatically.

Author

Griefed

Parameters

pathToJava

The path to check for whether it is a valid Java installation.