# Logstash startup Error:Could not find or load main class Files\\Microsoft

**URL:** https://discuss.elastic.co/t/logstash-startup-error-could-not-find-or-load-main-class-files-microsoft/201722
**Category:** Logstash
**Created:** [October 1, 2019, 4:55am UTC](https://discuss.elastic.co/t/logstash-startup-error-could-not-find-or-load-main-class-files-microsoft/201722 "2019-10-01T04:55:51Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Kozanic](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kozanic/32/54694_2.png) [@Kozanic](https://discuss.elastic.co/u/Kozanic)
#### Post date: [October 1, 2019, 4:55am UTC](https://discuss.elastic.co/t/logstash-startup-error-could-not-find-or-load-main-class-files-microsoft/201722/1 "2019-10-01T04:55:51Z")

</div>

Hi All,

New to Elastic but not having a good start. Have managed to get Metricbeat working and reporting into out Cloud instance, now need to get Logstash working so I can run some SQL querys against a DB.

Have gone through the config setting etc as per set-up pages ([https://www.elastic.co/guide/en/beats/libbeat/5.4/logstash-installation.html#\_starting\_logstash](https://www.elastic.co/guide/en/beats/libbeat/5.4/logstash-installation.html#_starting_logstash)) but when attempting to start I get the error in the title: Error: Could not find or load main class Files\Microsoft.

Have read through and attempted fix as outlined here: [Error: Could not find or load main class Files\Microsoft](https://discuss.elastic.co/t/error-could-not-find-or-load-main-class-files-microsoft/163841) but has not resolved my issue.

Have checked a few other related post, but non of the suggested fixes have worked for me either.

Useful info:  
Logstash version: 7.3.2  
Java\_Home: C:\Program Files\Java\jdk1.8.0\_221  
CLASSPATH: .;"C:\Program Files\Microsoft JDBC Driver 4.2 for SQL Server\sqljdbc\_4.2\enu\jre8\sqljdbc42.jar";"C:\Program Files\Java\jre1.8.0\_221\bin\java.exe"

java version "1.8.0\_221"  
Java(TM) SE Runtime Environment (build 1.8.0\_221-b11)  
Java HotSpot(TM) 64-Bit Server VM (build 25.221-b11, mixed mode)

Appreciate any assistance that can be provided to get this working, thanks

---

<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: [October 29, 2019, 4:55am UTC](https://discuss.elastic.co/t/logstash-startup-error-could-not-find-or-load-main-class-files-microsoft/201722/2 "2019-10-29T04:55:57Z")

</div>

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