I did exactly as this SO post suggested, and ran the command java -XshowSettings:properties -version
. This does outputs a wealth of information on my console, but there is this %JRE_HOME%\bin
sitting on one line, which means that it looked up for JRE_HOME
but was unable to find any corresponding value.
EDIT 1 :START
Output of above command :
java.library.path = C:\Softwares\java\AdoptOpenJDK\JDK-11\OpenJDK11U-jdk_x64_windows_hotspot_11.0.10_9\jdk-11.0.10+9\bin
C:\WINDOWS\Sun\Java\bin
.
.
.
C:\Softwares\Gradle\gradle-6.8.1-all\gradle-6.8.1\bin
C:\Softwares\java\AdoptOpenJDK\JDK-11\OpenJDK11U-jdk_x64_windows_hotspot_11.0.10_9\jdk-11.0.10+9\bin
%JRE_HOME%\bin
C:\Softwares\Groovy\apache-groovy-sdk-3.0.0\bin
.
.
.
.
.
java.runtime.name = OpenJDK Runtime Environment
java.runtime.version = 11.0.10+9
java.specification.name = Java Platform API Specification
EDIT 1 : END
My JDK version :
>java -version
openjdk version "11.0.10" 2021-01-19
OpenJDK Runtime Environment AdoptOpenJDK (build 11.0.10+9)
OpenJDK 64-Bit Server VM AdoptOpenJDK (build 11.0.10+9, mixed mode)
I know that the JRE no more comes bundled in a separate jre
directory as it used to upto JDK 8. I went through several posts on SO in search for any guidance on setting up a JRE for JDK 11, but that doesn't help as none explains whether JRE_HOME is actually required to be setup for any other services/apps to function correctly.
Why does running the above command complain about not having JRE_HOME ?
However Spring STS does not complain when I point its JRE Home to the java home directory.