← Back to team overview

dhis2-users team mailing list archive

Re: JRE_HOME vs JAVA_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

From: Bob Jolliffe [mailto:bobjolliffe@xxxxxxxxx]
Sent: Tuesday, 25 July 2017 6:48 PM
To: Morten Olav Hansen <morten@xxxxxxxxx>
Cc: Edward Robinson <erobinson@xxxxxxxxxxxxxxxxxx>; dhis2-users <dhis2-users@xxxxxxxxxxxxxxxxxxx>
Subject: Re: [Dhis2-users] JRE_HOME vs JAVA_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@xxxxxxxxx<mailto:morten@xxxxxxxxx>> 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@xxxxxxxxxxxxxxxxxx<mailto:erobinson@xxxxxxxxxxxxxxxxxx>> wrote:
Just bumping this 😊

From: Dhis2-users [mailto:dhis2-users-bounces+erobinson<mailto:dhis2-users-bounces%2Berobinson>=projectbalance.com@xxxxxxxxxxxxxxxxxxx<mailto:projectbalance.com@xxxxxxxxxxxxxxxxxxx>] On Behalf Of Edward Robinson
Sent: Thursday, 20 July 2017 9:24 PM
To: dhis2-users <dhis2-users@xxxxxxxxxxxxxxxxxxx<mailto:dhis2-users@xxxxxxxxxxxxxxxxxxx>>
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@xxxxxxxxxxxxxxxxxxx<mailto:dhis2-users@xxxxxxxxxxxxxxxxxxx>
Unsubscribe : https://launchpad.net/~dhis2-users
More help   : https://help.launchpad.net/ListHelp


_______________________________________________
Mailing list: https://launchpad.net/~dhis2-users
Post to     : dhis2-users@xxxxxxxxxxxxxxxxxxx<mailto:dhis2-users@xxxxxxxxxxxxxxxxxxx>
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.

References