JRE_HOME vs JAVA_HOME

I assume the JAVA_HOME variable mentioned in most install guides specifically refers to the Tomcat requirement as opposed to a DHIS2 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.

Thanks!

Ed

Just bumping this
:blush:

···

From: Dhis2-users [mailto:dhis2-users-bounces+erobinson=projectbalance.com@lists.launchpad.net] On Behalf Of Edward Robinson

Sent: Thursday, 20 July 2017 9:24 PM

To: dhis2-users dhis2-users@lists.launchpad.net

Subject: [Dhis2-users] JRE_HOME vs JAVA_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.

Thanks!

Ed

I assume this is on windows, according to a quick google… both JRE_HOME should be ok, but normally we always install the JDK…

https://www.jamf.com/jamf-nation/articles/348/configuring-the-java_home-and-jre_home-environment-variables-on-a-windows-server

As you said, this has nothing to do with DHIS2… DHIS_HOME is the only variable we require (as long as everything else is setup correctly)

···

On Tue, Jul 25, 2017 at 11:34 PM, Edward Robinson erobinson@projectbalance.com wrote:

Just bumping this
:blush:

From: Dhis2-users [mailto:dhis2-users-bounces+erobinson=projectbalance.com@lists.launchpad.net] On Behalf Of Edward Robinson

Sent: Thursday, 20 July 2017 9:24 PM

To: dhis2-users dhis2-users@lists.launchpad.net

Subject: [Dhis2-users] JRE_HOME vs JAVA_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.

Thanks!

Ed


Mailing list: https://launchpad.net/~dhis2-users

Post to : dhis2-users@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-users

More help : https://help.launchpad.net/ListHelp

Morten Olav Hansen

Senior Engineer, DHIS 2

University of Oslo

http://www.dhis2.org

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…

https://www.jamf.com/jamf-nation/articles/348/configuring-the-java_home-and-jre_home-environment-variables-on-a-windows-server

As you said, this has nothing to do with DHIS2… DHIS_HOME is the only variable we require (as long as everything else is setup correctly)


Mailing list: https://launchpad.net/~dhis2-users

Post to : dhis2-users@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-users

More help : https://help.launchpad.net/ListHelp

Morten Olav Hansen

Senior Engineer, DHIS 2

University of Oslo

http://www.dhis2.org

On Tue, Jul 25, 2017 at 11:34 PM, Edward Robinson erobinson@projectbalance.com wrote:

Just bumping this
:blush:

From: Dhis2-users [mailto:dhis2-users-bounces+erobinson=projectbalance.com@lists.launchpad.net] On Behalf Of Edward Robinson

Sent: Thursday, 20 July 2017 9:24 PM

To: dhis2-users dhis2-users@lists.launchpad.net

Subject: [Dhis2-users] JRE_HOME vs JAVA_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.

Thanks!

Ed


Mailing list: https://launchpad.net/~dhis2-users

Post to : dhis2-users@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-users

More help : https://help.launchpad.net/ListHelp

I am travelling from Sat 24 June to Sunday 2 July. Access to my email will be sporadic. Please be patient and I will respond when I can.

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…

https://www.jamf.com/jamf-nation/articles/348/configuring-the-java_home-and-jre_home-environment-variables-on-a-windows-server

As you said, this has nothing to do with DHIS2… DHIS_HOME is the only variable we require (as long as everything else is setup correctly)

Morten Olav Hansen

Senior Engineer, DHIS 2

University of Oslo

http://www.dhis2.org

On Tue, Jul 25, 2017 at 11:34 PM, Edward Robinson erobinson@projectbalance.com wrote:

Just bumping this :blush:

From: Dhis2-users [mailto:dhis2-users-bounces+erobinson=projectbalance.com@lists.launchpad.net] On Behalf Of Edward Robinson

Sent: Thursday, 20 July 2017 9:24 PM

To: dhis2-users dhis2-users@lists.launchpad.net

Subject: [Dhis2-users] JRE_HOME vs JAVA_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.

Thanks!

Ed


Mailing list: https://launchpad.net/~dhis2-users

Post to : dhis2-users@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-users

More help : https://help.launchpad.net/ListHelp


Mailing list: https://launchpad.net/~dhis2-users

Post to : dhis2-users@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-users

More help : https://help.launchpad.net/ListHelp

I am travelling from Sat 24 June to Sunday 2 July. Access to my email will be sporadic. Please be patient and I will respond when I can.