# Elasticsearch 7.16.2 failed to start when switching from Java 8 to Java 11

**URL:** <https://discuss.elastic.co/t/elasticsearch-7-16-2-failed-to-start-when-switching-from-java-8-to-java-11/301404>\
**Category:** Elasticsearch\
**Created:** [April 3, 2022, 1:02am UTC](https://discuss.elastic.co/t/elasticsearch-7-16-2-failed-to-start-when-switching-from-java-8-to-java-11/301404 "2022-04-03T01:02:22Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![dzyubanv](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dzyubanv/32/24110_2.png) [@dzyubanv](https://discuss.elastic.co/u/dzyubanv)\
**Post date:** [April 18, 2022, 7:59pm UTC](https://discuss.elastic.co/t/elasticsearch-7-16-2-failed-to-start-when-switching-from-java-8-to-java-11/301404/5 "2022-04-18T19:59:04Z")

</div>

Thanks for the response David.  
I got your notes about using bundled java and elastic default settings but still have a few questions about configuration.  
I had to use Java 11 to follow up the firm's requirement.

To make the cluster with es-7.16.2 and java 11 functional I had to change the root /config/jvm.options as described above.  
I know from docs the changes need to be done in /config/jvm.options.d/jvm.options instead of changing root /config/jvm.options  
I tried this use case: left the root /config/jvm.options unchangeable, copied it into /config/jvm.options.d/jvm.options, made the change in it but in this case the node is not starting at all and not writing anything in the log.  
Whatever worked for me in the root /config/jvm.options, doesn't work in /config/jvm.options.d/jvm.options

_**Am I missing something else in configuration ?  
Should be file name in directory /config/jvm.options.d/ somehow differ from file name in root directory /config/ ?**_  
_ **Are there any other options how to specify the path to gc.logs instead of changing jvm.options ?** _

I raised these questions on the forum already at [Overriding default jvm options is not working (elastic 7.16.2 and java 11)](https://discuss.elastic.co/t/overriding-default-jvm-options-is-not-working-elastic-7-16-2-and-java-11/302525) with no answer yet.  
Appreciate your help and attention  
Thanks in advance

---

_[View the full topic](https://discuss.elastic.co/t/elasticsearch-7-16-2-failed-to-start-when-switching-from-java-8-to-java-11/301404)._
