Reading the JAVA_HOME environment variable from a Windows 2016 Server service?

Mark Flint August 3, 2018

Is there a way to configure Atlassian products which are installed as a Windows 2016 service, so it reads the JAVA_HOME variable? Right now the installer is creating a registry entry where one of the Java properties in the registry is "Jvm" and points to whatever JAVA_HOME was set to at the time of the service creation. 

Could it be as simple as deleting the "Jvm" registry entry that the Tomcat installer put there?

The reason I ask is our security team insists that we upgrade to the latest version of java shortly after it is released, so we change our version of java about once a month. If possible I am hoping not to have to uninstall the services and reinstall, or edit the Windows registry.

1 answer

0 votes
Igor M.
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
August 10, 2018

Hello,

By default, Confluence is installed with its own JRE and will read variables from there, however, you can install and use your own JDK and get Confluence pointing to new JAVA_HOME by following Setting the JAVA_HOME Variable in Windows guide.

Regards,

Igor

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events