# Logstash does not start; does not accept Java version

**URL:** <https://discuss.elastic.co/t/logstash-does-not-start-does-not-accept-java-version/113832>\
**Category:** Logstash\
**Created:** [January 2, 2018, 8:26pm UTC](https://discuss.elastic.co/t/logstash-does-not-start-does-not-accept-java-version/113832 "2018-01-02T20:26:57Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![enrique3000](https://avatars.discourse-cdn.com/v4/letter/e/c89c15/32.png) [@enrique3000](https://discuss.elastic.co/u/enrique3000)\
**Post date:** [January 2, 2018, 8:26pm UTC](https://discuss.elastic.co/t/logstash-does-not-start-does-not-accept-java-version/113832/1 "2018-01-02T20:26:57Z")

</div>

Best regard. I would like to know why the Logstash (version 6.1.1) that I have installed locally, does not accept the Java version that is on my computer. After locating in DOS in the directory where I have it installed ("c: \ Elastic Stack \ logstash-6.1.1"), when I give the instruction " **bin \ logstash**" it produces the following error message:

**_Can not find Java 1.5 or higher._**

Also, if located in the directory of your installation I give the instruction " **bin \ logstash -e 'input {stdin {}} output {stdout {}}'**" (to test the installation), it produces the same error message. The same thing happens if I give the instruction " **bin \ logstash -f logstash.conf**".

Previously I have already started both 'Elasticsearch' (version 6.1.0) and 'kibana' (version 6.1.1). I have Windows 7 Home Basic operating system.

The version of Java that I installed is the 8 (Update 151). Although I do not know why when I check it in DOS (with the instruction " **java -version**") it throws the following information:

_ **java version "1.8.0\_151"** _  
_**Java (TM) SE Runtime Environment (build 1.8.0\_151-b12)**_  
_**Java HotSpot (TM) 64-Bit Server VM (build 25,151-b12, mixed mode)**_

It seems as if it were the 1.8; even so, this is still greater than the 1.5 required by the Logstash.

I'm just beginning to know and use these tools. The next thing I have planned to do is install 'Beats' (Filebeats).

Please, have someone tell me what will be happening with the Java version and how to solve the problem.

I am very grateful to you in advance for your collaboration.

Please look at the attached image.

 ![2018ene02 LogStash no inicia - no acepta version de Java](https://us1.discourse-cdn.com/elastic/original/3X/6/3/638bbc331e8478c791d3795f3c0939d30147587b.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:** [January 30, 2018, 8:27pm UTC](https://discuss.elastic.co/t/logstash-does-not-start-does-not-accept-java-version/113832/2 "2018-01-30T20:27:02Z")

</div>

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