# Logsash-plugin command error

**URL:** <https://discuss.elastic.co/t/logsash-plugin-command-error/128342>\
**Category:** Logstash\
**Created:** [April 17, 2018, 11:57am UTC](https://discuss.elastic.co/t/logsash-plugin-command-error/128342 "2018-04-17T11:57:02Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![upchair](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/upchair/32/20893_2.png) [@upchair](https://discuss.elastic.co/u/upchair)\
**Post date:** [April 17, 2018, 11:57am UTC](https://discuss.elastic.co/t/logsash-plugin-command-error/128342/1 "2018-04-17T11:57:02Z")

</div>

Hello,

Please I have a problem with the logstash-plugin command. I have not been able to use it at all since I installed it. As a result I have not been able to install any plugin at all.

I would like to install the PLAIN CODEC plugin but to no avail.

Anytime I run the logstash-plugin command I get the following error:

"Cannot find Java 1.5 or higher".

I have java installed yet I get the same error. I have also set the JAVA\_HOME to point to the folder where I have the java executable file.

Can anybody please help me to resolve this problem as I have been on it for the past 24 hours.

Thank You

Richard

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [April 19, 2018, 6:19am UTC](https://discuss.elastic.co/t/logsash-plugin-command-error/128342/2 "2018-04-19T06:19:48Z")

</div>

What's the output of `java -version`?

> I have java installed yet I get the same error. I have also set the JAVA\_HOME to point to the folder where I have the java executable file.

AFAIK JAVA\_HOME shouldn't point to the "bin" directory where the java executable is stored but to its parent directory, i.e. the root directory of the JVM.

---

<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:** [May 17, 2018, 6:19am UTC](https://discuss.elastic.co/t/logsash-plugin-command-error/128342/3 "2018-05-17T06:19:49Z")

</div>

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