Dhinakar Dhinakar - 1 year ago 84
Java Question

Are both the JRE and the JDK required to run a JAR file?

It is possible to run a JAR file locally. The next step is to run it on a different PC.

The question is whether the JRE, the JDK or both are required to run the JAR file?

Answer Source

The JDK contains the JRE.

Most program only need the JRE (Java Runtime Environment) but some programs need the Compiler at runtime in which case you need the JDK.

If you have the JDK, you don't need the JRE as well.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download