# Logstash fail to start - Error: Mainclass logstash-core\\lib\\jars\\animal-sniffer-annotations-1.14.jar

**URL:** https://discuss.elastic.co/t/logstash-fail-to-start-error-mainclass-logstash-core-lib-jars-animal-sniffer-annotations-1-14-jar/149298
**Category:** Logstash
**Created:** [September 20, 2018, 1:28pm UTC](https://discuss.elastic.co/t/logstash-fail-to-start-error-mainclass-logstash-core-lib-jars-animal-sniffer-annotations-1-14-jar/149298 "2018-09-20T13:28:31Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![MrElastic](https://avatars.discourse-cdn.com/v4/letter/m/ce73a5/32.png) [@MrElastic](https://discuss.elastic.co/u/MrElastic)
#### Post date: [September 20, 2018, 1:28pm UTC](https://discuss.elastic.co/t/logstash-fail-to-start-error-mainclass-logstash-core-lib-jars-animal-sniffer-annotations-1-14-jar/149298/1 "2018-09-20T13:28:31Z")

</div>

Hi Everybody!

I Downloaded Logstash and tried to run a test "logststash.conf" to gather data from my sql server.

Oh, I am using Windows 10.

When i try to run **logstash -f logststash.conf** i get the following error:

> c:\Users\105026676\Downloads\Elastic Stack\logstash-6.4.1\bin  
> λ logstash -f logstash.conf  
> Fehler: Hauptklasse Stack\logstash-6.4.1\logstash-core\lib\jars\animal-sniffer-annotations-1.14.jar;c:\Users\105026676\Downloads\Elastic konnte nicht gefunden oder geladen werden

Sorry for the german. It says something like:

> Error: Mainclass Stack\logstash-6.4.1\logstash-core\lib\jars\animal-sniffer-annotations-1.14.jar;c:\Users\105026676\Downloads\Elastic could not be found or loaded

Seems like a path problem, but i can't figure out what i need to set and where.

best regards  
Konrad

---

<div class="post-metadata">

### Author: ![youngwill4ever](https://avatars.discourse-cdn.com/v4/letter/y/c57346/32.png) [@youngwill4ever](https://discuss.elastic.co/u/youngwill4ever)
#### Post date: [October 5, 2018, 3:08pm UTC](https://discuss.elastic.co/t/logstash-fail-to-start-error-mainclass-logstash-core-lib-jars-animal-sniffer-annotations-1-14-jar/149298/2 "2018-10-05T15:08:58Z")

</div>

I have the same issue. Could someone please help? Thanks!

---

<div class="post-metadata">

### Author: ![logstashuser30](https://avatars.discourse-cdn.com/v4/letter/l/a88e57/32.png) [@logstashuser30](https://discuss.elastic.co/u/logstashuser30)
#### Post date: [October 9, 2018, 7:07pm UTC](https://discuss.elastic.co/t/logstash-fail-to-start-error-mainclass-logstash-core-lib-jars-animal-sniffer-annotations-1-14-jar/149298/3 "2018-10-09T19:07:03Z")

</div>

Had the same issue and after reading multiple post, moving the logstash directory to a place that had no spaces (in my case C:\Program Files\Elastic\Logstash\6.4.2\bin) to c:\Elastic\Logstash\6.4.2\bin finally was able to start/run the logstash.bat

I actually moved the whole directory (and all contents) to avoid the spaces

---

<div class="post-metadata">

### Author: ![dhilip\_kumar](https://avatars.discourse-cdn.com/v4/letter/d/d78d45/32.png) [@dhilip\_kumar](https://discuss.elastic.co/u/dhilip_kumar)
#### Post date: [October 18, 2018, 11:13am UTC](https://discuss.elastic.co/t/logstash-fail-to-start-error-mainclass-logstash-core-lib-jars-animal-sniffer-annotations-1-14-jar/149298/4 "2018-10-18T11:13:54Z")

</div>

Hey Dude,

Just rename the folder name from "Elastic Stack" to "Elastic\_Stack".

Thanks  
Simon Dhilip

---

<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 15, 2018, 11:13am UTC](https://discuss.elastic.co/t/logstash-fail-to-start-error-mainclass-logstash-core-lib-jars-animal-sniffer-annotations-1-14-jar/149298/5 "2018-11-15T11:13:57Z")

</div>

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