# Logstash giving this error when I am running it in my Command prompt

**URL:** https://discuss.elastic.co/t/logstash-giving-this-error-when-i-am-running-it-in-my-command-prompt/237036
**Category:** Logstash
**Created:** [June 14, 2020, 7:17pm UTC](https://discuss.elastic.co/t/logstash-giving-this-error-when-i-am-running-it-in-my-command-prompt/237036 "2020-06-14T19:17:00Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![TUSHAR\_Sinha](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tushar_sinha/32/69782_2.png) [@TUSHAR\_Sinha](https://discuss.elastic.co/u/TUSHAR_Sinha)
#### Post date: [June 14, 2020, 7:17pm UTC](https://discuss.elastic.co/t/logstash-giving-this-error-when-i-am-running-it-in-my-command-prompt/237036/1 "2020-06-14T19:17:01Z")

</div>

Error: Could not find or load main class Stack\logstash-7.7.1\logstash-7.7.1\logstash-core\lib\jars\animal-sniffer-annotations-1.14.jar

I have installed the logstash and while running it. It is showing me this error. How can I resolve it? Is there any issue with the jdk in my system? Please help if anyone has encountered this error.

---

<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: [July 12, 2020, 7:17pm UTC](https://discuss.elastic.co/t/logstash-giving-this-error-when-i-am-running-it-in-my-command-prompt/237036/2 "2020-07-12T19:17:01Z")

</div>

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