# Issue while running FSCrawler on new install of Windows Server 2016

**URL:** <https://discuss.elastic.co/t/issue-while-running-fscrawler-on-new-install-of-windows-server-2016/290524>\
**Category:** Elasticsearch\
**Created:** [November 30, 2021, 7:33am UTC](https://discuss.elastic.co/t/issue-while-running-fscrawler-on-new-install-of-windows-server-2016/290524 "2021-11-30T07:33:36Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Steveh15](https://avatars.discourse-cdn.com/v4/letter/s/f17d59/32.png) [@Steveh15](https://discuss.elastic.co/u/Steveh15)\
**Post date:** [November 30, 2021, 7:33am UTC](https://discuss.elastic.co/t/issue-while-running-fscrawler-on-new-install-of-windows-server-2016/290524/1 "2021-11-30T07:33:36Z")

</div>

Hello,

My apologies if I have missed any data but I am new to ES.

I get the following error when trying to run FSCrawler:

Error: Could not find or load main class Files\Elasticsearch\fscrawler-es7-2.7.config.log4j2.xml  
Caused by: java.lang.ClassNotFoundException: Files\Elasticsearch\fscrawler-es7-2.7.config.log4j2.xml

This is a brand new install of Windows. I am using ES 7.15, Kibana 7.15 and FSC 2.7.  
I have this working on a VM (Win 2012 Server) but wanted to run it on a physical machine. Both ES and Kibana seem to be working as expected.

I have also installed JDK 17.0.1. I have set my JAVA\_HOME and PATH

Anyone any ideas as to my issue?

---

<div class="post-metadata">

**Author:** ![Steveh15](https://avatars.discourse-cdn.com/v4/letter/s/f17d59/32.png) [@Steveh15](https://discuss.elastic.co/u/Steveh15)\
**Post date:** [November 30, 2021, 9:05am UTC](https://discuss.elastic.co/t/issue-while-running-fscrawler-on-new-install-of-windows-server-2016/290524/2 "2021-11-30T09:05:34Z")

</div>

I worked out what my issue was. I have setup my FSCrawler directory in C:\Program Files\Elasticsearch and it is not picking up the path correctly. It is only seeing the Files part of Program Files. If I move it to a folder called Program\_Files then it all works perfectly.

Maybe there needs to be some work done to allow for Directories that have a space in their name.

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [November 30, 2021, 12:42pm UTC](https://discuss.elastic.co/t/issue-while-running-fscrawler-on-new-install-of-windows-server-2016/290524/3 "2021-11-30T12:42:36Z")

</div>

Thanks @Steveh15 .

Could you please open an issue in FSCrawler project? This is indeed a bug.

---

<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 28, 2021, 12:42pm UTC](https://discuss.elastic.co/t/issue-while-running-fscrawler-on-new-install-of-windows-server-2016/290524/4 "2021-12-28T12:42:55Z")

</div>

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