Dhinakar Dhinakar - 17 days ago 5
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

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.

Comments