# Logstash on Windows - add reading Java path from registry?

**URL:** <https://discuss.elastic.co/t/logstash-on-windows-add-reading-java-path-from-registry/156934>\
**Category:** Logstash\
**Created:** [November 15, 2018, 7:46pm UTC](https://discuss.elastic.co/t/logstash-on-windows-add-reading-java-path-from-registry/156934 "2018-11-15T19:46:13Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![gjbdebug](https://avatars.discourse-cdn.com/v4/letter/g/edb3f5/32.png) [@gjbdebug](https://discuss.elastic.co/u/gjbdebug)\
**Post date:** [November 15, 2018, 7:46pm UTC](https://discuss.elastic.co/t/logstash-on-windows-add-reading-java-path-from-registry/156934/1 "2018-11-15T19:46:13Z")

</div>

In setup.bat, has adding code to check the registry for setting the Java path been considered when the existing logic cannot can't find the deployment? I'm specifically referring to scenarios where installed JRE/JDK auto-updating changes the path (to reflect new version) thus invalidating environment variable value(s) and requiring manual intervention. To accommodate this I've modified setup.bat to pull from the registry if the existing logic comes up short.

If there's a simpler way to handle Java's post-update path change, please share. Thanks.  
-gjbdebug

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [December 13, 2018, 7:46pm UTC](https://discuss.elastic.co/t/logstash-on-windows-add-reading-java-path-from-registry/156934/2 "2018-12-13T19:46:13Z")

</div>

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