# Elasticsearch 7.3.2 plugin install could not find java Raspberry Pi4 Buster

**URL:** <https://discuss.elastic.co/t/elasticsearch-7-3-2-plugin-install-could-not-find-java-raspberry-pi4-buster/213265>\
**Category:** Elasticsearch\
**Created:** [December 28, 2019, 7:41pm UTC](https://discuss.elastic.co/t/elasticsearch-7-3-2-plugin-install-could-not-find-java-raspberry-pi4-buster/213265 "2019-12-28T19:41:34Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![xiaojunma](https://avatars.discourse-cdn.com/v4/letter/x/dec6dc/32.png) [@xiaojunma](https://discuss.elastic.co/u/xiaojunma)\
**Post date:** [December 28, 2019, 7:41pm UTC](https://discuss.elastic.co/t/elasticsearch-7-3-2-plugin-install-could-not-find-java-raspberry-pi4-buster/213265/1 "2019-12-28T19:41:34Z")

</div>

After installation of Elasticserach 7.3.2. on Raspberry Pi4 / Buster,

> sudo /usr/share/elasticsearch/bin/elasticsearch-plugin install ingest-attachment  
> could not find java in JAVA\_HOME or bundled at /usr/share/elasticsearch/jdk/bin/java  
> $ echo $JAVA\_HOME  
> /usr/lib/jvm/java-11-openjdk-armhf/

The service is running.  
Can anyone help please?

---

<div class="post-metadata">

**Author:** ![xiaojunma](https://avatars.discourse-cdn.com/v4/letter/x/dec6dc/32.png) [@xiaojunma](https://discuss.elastic.co/u/xiaojunma)\
**Post date:** [January 2, 2020, 6:38pm UTC](https://discuss.elastic.co/t/elasticsearch-7-3-2-plugin-install-could-not-find-java-raspberry-pi4-buster/213265/2 "2020-01-02T18:38:02Z")

</div>

I got it managed.  
with

> sudo cp -rf /usr/lib/jvm/java-11-openjdk-armhf/\* /usr/share/elasticsearch/jdk

The next question is now: Why do I need to copy the java lib if elesticserach was running before as well?? JAVA\_HOME was set correctly, correct enough for elasticsearch.service  
Thanks for ideas! 🙂

---

<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, 2020, 6:38pm UTC](https://discuss.elastic.co/t/elasticsearch-7-3-2-plugin-install-could-not-find-java-raspberry-pi4-buster/213265/3 "2020-01-30T18:38:05Z")

</div>

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