# \\Java\\jre1.8.0\_201\\bin\\java.exe was unexpected at this time

**URL:** <https://discuss.elastic.co/t/java-jre1-8-0-201-bin-java-exe-was-unexpected-at-this-time/168105>\
**Category:** Elasticsearch\
**Created:** [February 12, 2019, 7:49pm UTC](https://discuss.elastic.co/t/java-jre1-8-0-201-bin-java-exe-was-unexpected-at-this-time/168105 "2019-02-12T19:49:55Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![bob28](https://avatars.discourse-cdn.com/v4/letter/b/8e8cbc/32.png) [@bob28](https://discuss.elastic.co/u/bob28)\
**Post date:** [February 12, 2019, 7:49pm UTC](https://discuss.elastic.co/t/java-jre1-8-0-201-bin-java-exe-was-unexpected-at-this-time/168105/1 "2019-02-12T19:49:55Z")

</div>

Hi,

I am trying to start the elasticsearch and getting below message. I have upgraded my java version to jre1.8.0\_201 and then when I start it, I am facing this issue.

\Java\jre1.8.0\_201\bin\java.exe was unexpected at this time.

Could some one let me know what could be the issue.

Regards,  
Bob

---

<div class="post-metadata">

**Author:** ![TimV](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/timv/32/13162_2.png) [@TimV](https://discuss.elastic.co/u/TimV)\
**Post date:** [February 17, 2019, 11:50pm UTC](https://discuss.elastic.co/t/java-jre1-8-0-201-bin-java-exe-was-unexpected-at-this-time/168105/2 "2019-02-17T23:50:52Z")

</div>

At a guess, it looks like you have a space in the environment variable (?) you are using to define the location of your Java executable.

---

<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:** [March 17, 2019, 11:50pm UTC](https://discuss.elastic.co/t/java-jre1-8-0-201-bin-java-exe-was-unexpected-at-this-time/168105/3 "2019-03-17T23:50:54Z")

</div>

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