Java Upgrades and the JAVA_HOME environment variable

We are running into a problem where upgrading Java via an automated process causes elastic search to break since the automatic process does not upgrade the JAVA_HOME environment variable.

We run elastic search in a windows environment and more specifically against Windows Server 2012 R2 box. We use system center configuration manager to perform our automated java upgrades/patching.

The technical reasons that cause the upgrade to fail has to do with Java placing its bits under a folder related to the version installed. I know this is done so you can have side by side installation; however, our automated process removes the old version only leaving the latest version. Then elastic search breaks because it cannot find the java runtime.

What recommends do you have for updating the JAVA_HOME environment variable as part of patching Java? Why doesn't elastic search have a mechanism for searching out Java runtimes installed?

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.