# Issue while running FSCrawler on WSL

**URL:** <https://discuss.elastic.co/t/issue-while-running-fscrawler-on-wsl/334620>\
**Category:** Elasticsearch\
**Created:** [May 29, 2023, 9:23pm UTC](https://discuss.elastic.co/t/issue-while-running-fscrawler-on-wsl/334620 "2023-05-29T21:23:58Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![chloesun](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/chloesun/32/121566_2.png) [@chloesun](https://discuss.elastic.co/u/chloesun)\
**Post date:** [May 29, 2023, 9:23pm UTC](https://discuss.elastic.co/t/issue-while-running-fscrawler-on-wsl/334620/1 "2023-05-29T21:23:58Z")

</div>

I installed JAVA 11, Elastic Search 7, and Fscrawler2.8 on WSL on my Windows machine. Elastic search has no issue starting, and I already configured JAVA\_HOME in `.bashrc`

`export JAVA_HOME="/usr/lib/jvm/java-11-openjdk-amd64"`

but when I try to start fscrawler, cd into the fscrawler directory, run `bin/fscrawler`

It keeps giving me the error  
`"Error: Could not find or load main class search Caused by: java.lang.ClassNotFoundException: search"`

What do I need to do to make it work? Thank you very much!

---

<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:** [May 30, 2023, 10:07am UTC](https://discuss.elastic.co/t/issue-while-running-fscrawler-on-wsl/334620/2 "2023-05-30T10:07:47Z")

</div>

Welcome!

How did you install FSCrawler?

---

<div class="post-metadata">

**Author:** ![chloesun](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/chloesun/32/121566_2.png) [@chloesun](https://discuss.elastic.co/u/chloesun)\
**Post date:** [May 30, 2023, 1:42pm UTC](https://discuss.elastic.co/t/issue-while-running-fscrawler-on-wsl/334620/3 "2023-05-30T13:42:49Z")

</div>

Hello David, this is how I installed Fscrawler:  
`wget https://repo1.maven.org/maven2/fr/pilato/elasticsearch/crawler/fscrawler-es7/2.8/fscrawler-es7-2.8.zip`  
`unzip fscrawler-es7-2.8.zip`  
`cd fscrawler-es7-2.8`  
`bin/fscrawler --config_dir ./test reports`

---

<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:** [May 30, 2023, 5:46pm UTC](https://discuss.elastic.co/t/issue-while-running-fscrawler-on-wsl/334620/4 "2023-05-30T17:46:32Z")

</div>

That's a too old version. Please use the latest 2.10-SNAPSHOT which is much more stable although the name...

---

<div class="post-metadata">

**Author:** ![chloesun](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/chloesun/32/121566_2.png) [@chloesun](https://discuss.elastic.co/u/chloesun)\
**Post date:** [May 30, 2023, 6:27pm UTC](https://discuss.elastic.co/t/issue-while-running-fscrawler-on-wsl/334620/5 "2023-05-30T18:27:40Z")

</div>

Thanks! I replaced it with 2.10 and it gave me the same error:

 ![error](https://us1.discourse-cdn.com/elastic/original/3X/f/1/f1dc8ee214ee91fd9dd0663a5746d4fe75314904.png)  
What else should I try to make it start...I'm stuck with this issue for days...

---

<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:** [May 31, 2023, 4:33am UTC](https://discuss.elastic.co/t/issue-while-running-fscrawler-on-wsl/334620/6 "2023-05-31T04:33:47Z")

</div>

Could you move fscrawler to a dir where there's no space in its path?

---

<div class="post-metadata">

**Author:** ![chloesun](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/chloesun/32/121566_2.png) [@chloesun](https://discuss.elastic.co/u/chloesun)\
**Post date:** [May 31, 2023, 2:05pm UTC](https://discuss.elastic.co/t/issue-while-running-fscrawler-on-wsl/334620/7 "2023-05-31T14:05:48Z")

</div>

Now it's working, thank you so much!

---

<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:** [June 28, 2023, 2:05pm UTC](https://discuss.elastic.co/t/issue-while-running-fscrawler-on-wsl/334620/8 "2023-06-28T14:05:56Z")

</div>

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