# Which: no javac for local plugin installation

**URL:** <https://discuss.elastic.co/t/which-no-javac-for-local-plugin-installation/86181>\
**Category:** Logstash\
**Created:** [May 17, 2017, 11:41pm UTC](https://discuss.elastic.co/t/which-no-javac-for-local-plugin-installation/86181 "2017-05-17T23:41:41Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![lgee](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lgee/32/76444_2.png) [@lgee](https://discuss.elastic.co/u/lgee)\
**Post date:** [May 17, 2017, 11:41pm UTC](https://discuss.elastic.co/t/which-no-javac-for-local-plugin-installation/86181/1 "2017-05-17T23:41:41Z")

</div>

I have a logstash dockerfile which uses the elastic docker 5.3.2 image ([docker.elastic.co/logstash/logstash:5.3.2](http://docker.elastic.co/logstash/logstash:5.3.2)) as a base and installs 3 local gem plugins which aren't in the logstash plugin repository.

If I bump the version to 5.4.0, then any attempt to install a local plugin results in the following error:

> which: no javac in (/usr/share/logstash/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin)

I've seen reference to a similar bug report, but not in the context of the pre-built docker images. See here: [Logstash alpha4/alpha5/beta1 - Error while installing any plugin on CentOS · Issue #5966 · elastic/logstash · GitHub](https://github.com/elastic/logstash/issues/5966)

Any help would be appreciated!

---

<div class="post-metadata">

**Author:** ![llater](https://avatars.discourse-cdn.com/v4/letter/l/73ab20/32.png) [@llater](https://discuss.elastic.co/u/llater)\
**Post date:** [May 24, 2017, 9:16pm UTC](https://discuss.elastic.co/t/which-no-javac-for-local-plugin-installation/86181/2 "2017-05-24T21:16:28Z")

</div>

Using the pre-built image **[docker.elastic.co/logstash/logstash:5.4.0](http://docker.elastic.co/logstash/logstash:5.4.0)** as a base for another Dockerfile, and attempting to run a local install with the command

```
RUN /usr/share/logstash/bin/logstash-plugin install logstash-input-beats

```

also yields the

```
 which: no javac in (/usr/share/logstash/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin)

```

How do you install a logstash plugin with the pre-built Docker image?

---

<div class="post-metadata">

**Author:** ![lgee](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lgee/32/76444_2.png) [@lgee](https://discuss.elastic.co/u/lgee)\
**Post date:** [May 24, 2017, 9:32pm UTC](https://discuss.elastic.co/t/which-no-javac-for-local-plugin-installation/86181/3 "2017-05-24T21:32:02Z")

</div>

Hi llater,

I also posted an issue on github, and it was acknowledged and fixed. See here: [https://github.com/elastic/logstash-docker/issues/33](https://github.com/elastic/logstash-docker/issues/33)

I haven't tested it myself yet - as we're still using an older version. But it looks like you just need to try with the very latest image.

L

---

<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:** [June 21, 2017, 9:32pm UTC](https://discuss.elastic.co/t/which-no-javac-for-local-plugin-installation/86181/4 "2017-06-21T21:32:19Z")

</div>

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