SOLUTION FOR ERROR *** Could not find or load main class Files***

Hi folks,

For fix the error Could not find or load main class Files when to run logstash.bat, you must add quote in the environment variable %CLASSPATH%.

See it below more detais:


Before:
%JAVA% %JAVA_OPTS% -cp %CLASSPATH% org.logstash.Logstash %*


After:
%JAVA% %JAVA_OPTS% -cp "%CLASSPATH%" org.logstash.Logstash %*


Regards,
Artuso

1 Like

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