pub fn java_home() -> Option<PathBuf>Expand description
Returns the JAVA_HOME path by attempting to discover it.
First, if the $JAVA_HOME environment variable is set and points to a directory that exists,
that path is returned.
Otherwise, a series of common installation locations is used,
based on the current platform (macOS, Linux, Windows).