From 8c57fa36276f209f7c545338dc17a4cc89842dec Mon Sep 17 00:00:00 2001 From: Chiranjib Swain Date: Tue, 16 Sep 2025 23:49:02 +0530 Subject: [PATCH] Clarify JAVA_HOME and PATH setup in README (#841) * Update README to clarify JAVA_HOME and PATH setup * Clarify instructions for setting up multiple JDKs in README --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 4ed3c34d..7addc9a4 100644 --- a/README.md +++ b/README.md @@ -244,7 +244,7 @@ jobs: ### Install multiple JDKs -All versions are added to the PATH. The last version will be used and available globally. Other Java versions can be accessed through env variables with such specification as 'JAVA_HOME_{{ MAJOR_VERSION }}_{{ ARCHITECTURE }}'. +All configured Java versions are added to the PATH. The last one added to the PATH (i.e., the last JDK set up by this action) will be used as the default and available globally. Other Java versions can be accessed through environment variables such as 'JAVA_HOME_{{ MAJOR_VERSION }}_{{ ARCHITECTURE }}'. To use a specific Java version, set the JAVA_HOME environment variable accordingly and prepend its bin directory to the PATH to ensure it takes priority during execution. ```yaml steps: