find_java_binary

Function find_java_binary 

Source
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 JREs
  • distribution - The Java distribution to locate
  • version - Java major version number

§Returns

Absolute path to the java binary, or error if not found