# Could not find or load main class Files\\logstash\\logstash-core\\lib\\jars\\animal-sniffer-annotations-1.14.jar;C:Program

**URL:** https://discuss.elastic.co/t/could-not-find-or-load-main-class-files-logstash-logstash-core-lib-jars-animal-sniffer-annotations-1-14-jar-c-program/150360
**Category:** Logstash
**Created:** [September 28, 2018, 2:52pm UTC](https://discuss.elastic.co/t/could-not-find-or-load-main-class-files-logstash-logstash-core-lib-jars-animal-sniffer-annotations-1-14-jar-c-program/150360 "2018-09-28T14:52:02Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![kunalwagh](https://avatars.discourse-cdn.com/v4/letter/k/e19b73/32.png) [@kunalwagh](https://discuss.elastic.co/u/kunalwagh)
#### Post date: [September 28, 2018, 2:52pm UTC](https://discuss.elastic.co/t/could-not-find-or-load-main-class-files-logstash-logstash-core-lib-jars-animal-sniffer-annotations-1-14-jar-c-program/150360/1 "2018-09-28T14:52:03Z")

</div>

1. Downloaded the latest package and Installed Logstash in C:\Program Files.

2. Installed JAVA\_HOME to " C:\Program Files\Java\jdk1.8.0\_181 "  
Checked echo %java\_home% ==\> showing up the same

3. Checked java -version  
showing up ==\> java version "1.8.0\_181"

4. Open Command promt as Administrator and navigated to C:\Program Files\logstash\bin.  
Ran ==\> bin\logstash -e "input { stdin { } } output { stdout { } }"

Getting the above-mentioned Error:Could not find or load main class Files\logstash\logstash-core\lib\jars\animal-sniffer-annotations-1.14.jar;C:Program

Please let me know what am I missing.

---

<div class="post-metadata">

### Author: ![SendHelp](https://avatars.discourse-cdn.com/v4/letter/s/edb3f5/32.png) [@SendHelp](https://discuss.elastic.co/u/SendHelp)
#### Post date: [October 11, 2018, 9:36pm UTC](https://discuss.elastic.co/t/could-not-find-or-load-main-class-files-logstash-logstash-core-lib-jars-animal-sniffer-annotations-1-14-jar-c-program/150360/2 "2018-10-11T21:36:01Z")

</div>

Same issue here

---

<div class="post-metadata">

### Author: ![Cesar\_Zaldivar](https://avatars.discourse-cdn.com/v4/letter/c/d78d45/32.png) [@Cesar\_Zaldivar](https://discuss.elastic.co/u/Cesar_Zaldivar)
#### Post date: [October 16, 2018, 8:32pm UTC](https://discuss.elastic.co/t/could-not-find-or-load-main-class-files-logstash-logstash-core-lib-jars-animal-sniffer-annotations-1-14-jar-c-program/150360/3 "2018-10-16T20:32:24Z")

</div>

I'm getting the same error. Has anyone figured out how to solve it?

---

<div class="post-metadata">

### Author: ![stcleezy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stcleezy/32/36582_2.png) [@stcleezy](https://discuss.elastic.co/u/stcleezy)
#### Post date: [October 16, 2018, 11:17pm UTC](https://discuss.elastic.co/t/could-not-find-or-load-main-class-files-logstash-logstash-core-lib-jars-animal-sniffer-annotations-1-14-jar-c-program/150360/4 "2018-10-16T23:17:31Z")

</div>

I had the same problem -- I'm guessing you are using Windows and have your logstash directory in "C:\Program Files..."

It's having trouble parsing the empty space in the path. Move your logstash directory to C: and try again.

---

<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: [November 13, 2018, 11:17pm UTC](https://discuss.elastic.co/t/could-not-find-or-load-main-class-files-logstash-logstash-core-lib-jars-animal-sniffer-annotations-1-14-jar-c-program/150360/5 "2018-11-13T23:17:32Z")

</div>

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