Error: Could not find or load main class Files - Logstash installation failed

Cannot install logstash on my windows 10 system . Error: Could not find or load main class Files
Caused by: java.lang.ClassNotFoundException: Files

Logstash.conf file is as follows

conf%20file

JAVA_HOME environment variables is there .

Java version is getting as expected

C:\Users\ACER>java -version
java version "11.0.1" 2018-10-16 LTS
Java(TM) SE Runtime Environment 18.9 (build 11.0.1+13-LTS)
Java HotSpot(TM) 64-Bit Server VM 18.9 (build 11.0.1+13-LTS, mixed mode)

Then what is the issue with it ?

I had a similar error message yesterday while trying to install Logstash. Moving the entire Logstash folder out of the Program Files directory and on to the C: drive fixed it for me.

Did the same, Logstash folder moved to C:/ . Now its showing new error .I think this error is regarding java version ? My java version is "11.0.1" 2018-10-16 LTS . logstash doesn't work with jdk 9+ ?

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