pub fn get_java_info(java_exec_path: &str) -> Result<JavaInfo>Expand description
Creates a comprehensive JavaInfo object for a Java installation.
This function gathers all information about a Java installation by calling the individual information extraction functions.
§Arguments
java_exec_path- Path to the Java executable
§Returns
Ok(JavaInfo)containing all Java informationErr(JavaLocatorError)if any information cannot be gathered
§Examples
use java_manager;
fn main() -> java_manager::Result<()> {
let java_path = "/usr/bin/java";
let info = java_manager::get_java_info(java_path)?;
println!("Java Info: {}", info);
Ok(())
}