# Do we need jdk and jre to run logstash and elasticsearch or jre itself enough?

**URL:** <https://discuss.elastic.co/t/do-we-need-jdk-and-jre-to-run-logstash-and-elasticsearch-or-jre-itself-enough/28260>\
**Category:** Logstash\
**Created:** [August 28, 2015, 5:11pm UTC](https://discuss.elastic.co/t/do-we-need-jdk-and-jre-to-run-logstash-and-elasticsearch-or-jre-itself-enough/28260 "2015-08-28T17:11:19Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![thiruna](https://avatars.discourse-cdn.com/v4/letter/t/6bbea6/32.png) [@thiruna](https://discuss.elastic.co/u/thiruna)\
**Post date:** [August 28, 2015, 5:11pm UTC](https://discuss.elastic.co/t/do-we-need-jdk-and-jre-to-run-logstash-and-elasticsearch-or-jre-itself-enough/28260/1 "2015-08-28T17:11:19Z")

</div>

Hi,

We are using below version of Java for logstash and elasticsearch in our environment.  
java -version  
java version "1.7.0\_51"  
Java(TM) SE Runtime Environment (build 1.7.0\_51-b13)  
Java HotSpot(TM) 64-Bit Server VM (build 24.51-b03, mixed mode)

We need to know like Do we need jdk and jre to run logstash and elasticsearch or jre itself enough?

Thanks,  
Thiru.

---

<div class="post-metadata">

**Author:** ![Joshua\_Rich](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/joshua_rich/32/44953_2.png) [@Joshua\_Rich](https://discuss.elastic.co/u/Joshua_Rich)\
**Post date:** [August 29, 2015, 4:16am UTC](https://discuss.elastic.co/t/do-we-need-jdk-and-jre-to-run-logstash-and-elasticsearch-or-jre-itself-enough/28260/2 "2015-08-29T04:16:20Z")

</div>

You just need a JRE. The JDK will be helpful for troubleshooting as it contains a few tools that help in that regard. But operationally, just the JRE is needed.

---

<div class="post-metadata">

**Author:** ![thiruna](https://avatars.discourse-cdn.com/v4/letter/t/6bbea6/32.png) [@thiruna](https://discuss.elastic.co/u/thiruna)\
**Post date:** [September 3, 2015, 4:58pm UTC](https://discuss.elastic.co/t/do-we-need-jdk-and-jre-to-run-logstash-and-elasticsearch-or-jre-itself-enough/28260/3 "2015-09-03T16:58:58Z")

</div>

Thanks Joshua for your helpful info.

---

<div class="post-metadata">

**Author:** ![thiruna](https://avatars.discourse-cdn.com/v4/letter/t/6bbea6/32.png) [@thiruna](https://discuss.elastic.co/u/thiruna)\
**Post date:** [September 3, 2015, 7:48pm UTC](https://discuss.elastic.co/t/do-we-need-jdk-and-jre-to-run-logstash-and-elasticsearch-or-jre-itself-enough/28260/4 "2015-09-03T19:48:35Z")

</div>

Joshua,

Could you please elaborate more on these?

What you mean by "JDK will be helpful for troubleshooting as it contains a few tools that help in that regard"?

And what you mean by "But operationally, just the JRE is needed"?

---

<div class="post-metadata">

**Author:** ![Joshua\_Rich](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/joshua_rich/32/44953_2.png) [@Joshua\_Rich](https://discuss.elastic.co/u/Joshua_Rich)\
**Post date:** [September 3, 2015, 10:42pm UTC](https://discuss.elastic.co/t/do-we-need-jdk-and-jre-to-run-logstash-and-elasticsearch-or-jre-itself-enough/28260/5 "2015-09-03T22:42:44Z")

</div>

The JDK contains the JRE, plus additional tools and components that are useful for debugging and troubleshooting, in addition to being necessary for doing development work in Java. To just run a Java program, you only need the JRE.

See also the first few sections from [Oracle's Java platform overview](https://docs.oracle.com/javase/8/docs/technotes/guides/).

---

<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:** [July 6, 2017, 5:30am UTC](https://discuss.elastic.co/t/do-we-need-jdk-and-jre-to-run-logstash-and-elasticsearch-or-jre-itself-enough/28260/6 "2017-07-06T05:30:10Z")

</div>


