From 9955c0e961d7b5bdc4316e5e94350f673a4809b1 Mon Sep 17 00:00:00 2001 From: chiranjib-swain Date: Thu, 22 May 2025 12:53:32 +0530 Subject: [PATCH 1/2] Update README to clarify JAVA_HOME and PATH setup --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 844fa9933..f83b28762 100644 --- a/README.md +++ b/README.md @@ -235,7 +235,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 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 }}'. To set up a specific Java version, update the JAVA_HOME environment variable and prepend its bin directory to the PATH to ensure the desired JDK takes priority during execution. ```yaml steps: From c86f1b0294817b9174bf946afa07137f94fd08b2 Mon Sep 17 00:00:00 2001 From: chiranjib-swain Date: Thu, 21 Aug 2025 18:01:26 +0530 Subject: [PATCH 2/2] 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 f83b28762..937614606 100644 --- a/README.md +++ b/README.md @@ -235,7 +235,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 }}'. To set up a specific Java version, update the JAVA_HOME environment variable and prepend its bin directory to the PATH to ensure the desired JDK takes priority during execution. +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: