# Elasticsearch failed to start due to TEMP directory contains whitespace

**URL:** <https://discuss.elastic.co/t/elasticsearch-failed-to-start-due-to-temp-directory-contains-whitespace/167787>\
**Category:** Elasticsearch\
**Created:** [February 11, 2019, 4:02am UTC](https://discuss.elastic.co/t/elasticsearch-failed-to-start-due-to-temp-directory-contains-whitespace/167787 "2019-02-11T04:02:38Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Zhengcong\_Yin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/zhengcong_yin/32/62960_2.png) [@Zhengcong\_Yin](https://discuss.elastic.co/u/Zhengcong_Yin)\
**Post date:** [February 11, 2019, 4:02am UTC](https://discuss.elastic.co/t/elasticsearch-failed-to-start-due-to-temp-directory-contains-whitespace/167787/1 "2019-02-11T04:02:38Z")

</div>

Hi,

I recently and suddenly encounter an error message "Could not find or load main class XXXX\AppData\Local\Temp\elasticsearch" when I tried to start an Elasticsearch instance. My username contains whitespace. It seems like the Elasticsearch only obtains a partial path correctly (i.e., Jims John --\> John). This issue occurs after the most recent windows update.

Any solutions?

Thanks,

---

<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 11, 2019, 4:02am UTC](https://discuss.elastic.co/t/elasticsearch-failed-to-start-due-to-temp-directory-contains-whitespace/167787/2 "2019-03-11T04:02:46Z")

</div>

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