# \\Java\\jre1.8.0\_241\\bin\\java.exe" -cp "!ES\_CLASSPATH!" "org.elasticsearch.tools.launchers.TempDirectory""\` was unexpected at this time

**URL:** <https://discuss.elastic.co/t/java-jre1-8-0-241-bin-java-exe-cp-es-classpath-org-elasticsearch-tools-launchers-tempdirectory-was-unexpected-at-this-time/226503>\
**Category:** Elasticsearch\
**Created:** [April 4, 2020, 9:23am UTC](https://discuss.elastic.co/t/java-jre1-8-0-241-bin-java-exe-cp-es-classpath-org-elasticsearch-tools-launchers-tempdirectory-was-unexpected-at-this-time/226503 "2020-04-04T09:23:32Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Abhishek\_Pasupullete](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/abhishek_pasupullete/32/65658_2.png) [@Abhishek\_Pasupullete](https://discuss.elastic.co/u/Abhishek_Pasupullete)\
**Post date:** [April 4, 2020, 9:23am UTC](https://discuss.elastic.co/t/java-jre1-8-0-241-bin-java-exe-cp-es-classpath-org-elasticsearch-tools-launchers-tempdirectory-was-unexpected-at-this-time/226503/1 "2020-04-04T09:23:32Z")

</div>

Hi All,

I am getting following error when starting elastic search.  
\Java\jre1.8.0\_241\bin\java.exe" -cp "!ES\_CLASSPATH!" "org.elasticsearch.tools.launchers.TempDirectory""` was unexpected at this time.

JAVA\_HOME and ES\_HOME are set. Output of java -version is give below:  
java version "1.8.0\_241"  
Java(TM) SE Runtime Environment (build 1.8.0\_241-b07)  
Java HotSpot(TM) Client VM (build 25.241-b07, mixed mode, sharing)

---

<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:** [May 2, 2020, 9:30am UTC](https://discuss.elastic.co/t/java-jre1-8-0-241-bin-java-exe-cp-es-classpath-org-elasticsearch-tools-launchers-tempdirectory-was-unexpected-at-this-time/226503/2 "2020-05-02T09:30:01Z")

</div>

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