java_runtimes::detector

Function detect_java_in_environments

Source
pub fn detect_java_in_environments() -> Vec<JavaRuntime>
Expand description

Detects available Java runtimes from environment variables.

It searches java runtime in paths below:

  • JAVA_HOME
  • JAVA_ROOT
  • JDK_HOME
  • JRE_HOME
  • PATH