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

  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.

4 Likes

Same issue here

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

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.

7 Likes

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