# Logstash is not working for java 11

**URL:** https://discuss.elastic.co/t/logstash-is-not-working-for-java-11/189062
**Category:** Logstash
**Created:** [July 5, 2019, 9:37am UTC](https://discuss.elastic.co/t/logstash-is-not-working-for-java-11/189062 "2019-07-05T09:37:54Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![dhiraj07](https://avatars.discourse-cdn.com/v4/letter/d/71c47a/32.png) [@dhiraj07](https://discuss.elastic.co/u/dhiraj07)
#### Post date: [July 5, 2019, 9:37am UTC](https://discuss.elastic.co/t/logstash-is-not-working-for-java-11/189062/1 "2019-07-05T09:37:54Z")

</div>

Hi team,

I just installed ELK stack.  
But my Logstash is not working.  
I am using Logstash version:7.2.0  
Java version: 11

I just run the command:  
`logstash -e` `'input { stdin { } } output { stdout {} }'`

then Got the Error:  
OpenJDK 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release.  
Error: Could not find or load main class Files  
Caused by: java.lang.ClassNotFoundException: Files

---

<div class="post-metadata">

### Author: ![dhiraj07](https://avatars.discourse-cdn.com/v4/letter/d/71c47a/32.png) [@dhiraj07](https://discuss.elastic.co/u/dhiraj07)
#### Post date: [July 8, 2019, 7:28am UTC](https://discuss.elastic.co/t/logstash-is-not-working-for-java-11/189062/2 "2019-07-08T07:28:27Z")

</div>

Please find the log snapshot

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/d/d/dd3dc7c4fa1cfa11c152264ce77b450f1e7fec1c.png)

---

<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: [August 5, 2019, 7:28am UTC](https://discuss.elastic.co/t/logstash-is-not-working-for-java-11/189062/3 "2019-08-05T07:28:28Z")

</div>

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