pub async fn find_java_binary(
runtimes_folder: &Path,
distribution: &JavaDistribution,
version: &u8,
) -> JreResult<PathBuf>Expand description
Locates an existing Java binary in the runtime directory
Searches for the java executable in the expected directory structure based on the distribution and version.
§Arguments
runtimes_folder- Base directory containing installed JREsdistribution- The Java distribution to locateversion- Java major version number
§Returns
Absolute path to the java binary, or error if not found