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

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.

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.

1 Like

Thanks Joshua for your helpful info.

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"?

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.

1 Like