I assume the JAVA_HOME variable mentioned in most install guides specifically refers to a Tomcat requirement as opposed to a DHIS2 specific requirement.
I ask since I imagine JRE is good enough and the JAVA_HOME variable should be substituted for JRE_HOME in cases without JDK.
I just want to make sure JAVA_HOME will not be missed by DHIS itself if I have specified JRE_HOME.
I assume the JAVA_HOME variable mentioned in most install guides specifically refers to a Tomcat requirement as opposed to a DHIS2 specific requirement.
I ask since I imagine JRE is good enough and the JAVA_HOME variable should be substituted for JRE_HOME in cases without JDK.
I just want to make sure JAVA_HOME will not be missed by DHIS itself if I have specified JRE_HOME.
I am not a windoze guru but I strongly doubt you will need either for tomcat to run. I am pretty sure it will pick up the default jvm from the registry. The only time you’d want to get specific is if you are running multiple java versions and you need to specify which one to use.
···
On 25 July 2017 at 17:24, Morten Olav Hansen morten@dhis2.org wrote:
I assume this is on windows, according to a quick google… both JRE_HOME should be ok, but normally we always install the JDK…
I assume the JAVA_HOME variable mentioned in most install guides specifically refers to a Tomcat requirement as opposed to a DHIS2 specific requirement.
I ask since I imagine JRE is good enough and the JAVA_HOME variable should be substituted for JRE_HOME in cases without JDK.
I just want to make sure JAVA_HOME will not be missed by DHIS itself if I have specified JRE_HOME.
What I noticed is that when deploying Tomcat manually and adding the Windows service using the service.bat file (as opposed to using a Windows installer .exe), it complains if you have the JRE installed and a JAVA_HOME variable – it refuses to install the service and tells you to use JRE_HOME instead. Whether it has any tangible impact on the system is debatable but I found it interesting nonetheless. In future I’ll use the JDK regardless.
Thanks!
Ed
···
I am not a windoze guru but I strongly doubt you will need either for tomcat to run. I am pretty sure it will pick up the default jvm from the registry. The only time you’d want to get specific is if you are running multiple java versions and you need to specify which one to use.
On 25 July 2017 at 17:24, Morten Olav Hansen morten@dhis2.org wrote:
I assume this is on windows, according to a quick google… both JRE_HOME should be ok, but normally we always install the JDK…
I assume the JAVA_HOME variable mentioned in most install guides specifically refers to a Tomcat requirement as opposed to a DHIS2 specific requirement.
I ask since I imagine JRE is good enough and the JAVA_HOME variable should be substituted for JRE_HOME in cases without JDK.
I just want to make sure JAVA_HOME will not be missed by DHIS itself if I have specified JRE_HOME.