Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Define JAVA_HOME and JRE_HOME behaviour in msi installers #50
The AdoptOpenJDK msi installers currently
So far I have only been able to identify Tomcat as an application which uses JRE_HOME.
There are many applications which use JAVA_HOME, (including Tomcat if JRE_HOME is not set), but the AdoptOpenJDK jre installer does not offer this as an option.
One approach might be to offer setting both JRE_HOME and JAVA_HOME when installing the jre?
@alexhass - when you originally provided the msi installer code, what was the rationale behind the current JAVA_HOME and JRE_HOME options?
For reference, this is the behaviour of other installers taken from a thread by @douph1 in the installer slack channel:
Installer who propose to set JAVA_HOME :
Installer who propose to set JRE_HOME
So if the only application we know which uses JRE_HOME is Tomcat, and Tomcat works anyway if JAVA_HOME is set, and we know lots of applictions use JAVA_HOME, then I suggest we set JAVA_HOME for both jdk and jre and never set JRE_HOME. Any support for this or alternative views?