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

**URL:** https://discuss.elastic.co/t/error-could-not-find-or-load-main-class-files-microsoft/163841
**Category:** Logstash
**Created:** [January 11, 2019, 5:44am UTC](https://discuss.elastic.co/t/error-could-not-find-or-load-main-class-files-microsoft/163841 "2019-01-11T05:44:22Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![titus](https://avatars.discourse-cdn.com/v4/letter/t/48db29/32.png) [@titus](https://discuss.elastic.co/u/titus)
#### Post date: [January 11, 2019, 5:44am UTC](https://discuss.elastic.co/t/error-could-not-find-or-load-main-class-files-microsoft/163841/1 "2019-01-11T05:44:22Z")

</div>

I am writing this down because maybe there are some of you that waste days to fix this. it drove me nuts.

**PROBLEM:**  
Unzip logstash (any version) to Windows 10 - English us Locale.  
Unziped using "win zip" and "win rar".

None of "bat"s work (or sometimes only logstash.bat works).  
Error: " **Could not find or load main class Files\Microsoft**".

**SOLUTION:**  
Take a new archive (I took the tar.gz) and use 7-zip NOT winrar or win zip.  
RUN bin/setup.bat to fix the previous crap.  
Run logstash-plugin list or what ever- if it works you are done:)

I think this issue is present in kibana files too - yesterday one of my colleagues had weird issues when installing kibana on windows.

---

<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: [February 8, 2019, 5:44am UTC](https://discuss.elastic.co/t/error-could-not-find-or-load-main-class-files-microsoft/163841/2 "2019-02-08T05:44:24Z")

</div>

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