# Logstash-keystore Java error

**URL:** <https://discuss.elastic.co/t/logstash-keystore-java-error/286925>\
**Category:** Logstash\
**Created:** [October 17, 2021, 10:02am UTC](https://discuss.elastic.co/t/logstash-keystore-java-error/286925 "2021-10-17T10:02:28Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rysiu](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rysiu/32/61919_2.png) [@Rysiu](https://discuss.elastic.co/u/Rysiu)\
**Post date:** [October 17, 2021, 10:02am UTC](https://discuss.elastic.co/t/logstash-keystore-java-error/286925/1 "2021-10-17T10:02:28Z")

</div>

Hi,

I have a problem when running logstash-keystore

Windows command line:

`bin\logstash-keystore create`

Does not work and returns the information:

> "Using boundled JDK:"  
> Cannot find Java 1.5 or higher

However...

`bin\logstash` from the same command console works fine....

Why can `bin\logstash` work properly but `bin\logstash-keystore` doesn't anymore?

Logstash version 7.12.0  
Logstash works on Windows 10.

On this system logstash itself works fine. I just wanted to generate a keystore using logstash-keystore and this is the one place where I have a problem.

---

<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:** [November 14, 2021, 10:02am UTC](https://discuss.elastic.co/t/logstash-keystore-java-error/286925/2 "2021-11-14T10:02:56Z")

</div>

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