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


(Thirunavukkarasu) #1

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.


(Joshua Rich) #2

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.


(Thirunavukkarasu) #3

Thanks Joshua for your helpful info.


(Thirunavukkarasu) #4

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


(Joshua Rich) #5

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.


(system) #6