In order to compile and run your Java code you should have Java Development Kit (JDK) installed for compilation of your Java code and Java Runtime Environment (JRE) for running your code. JDK already includes JRE. It means that if you installed JDK, then you do not have to install JRE.

Basic approachEdit

  • If you develop Java code, then you need JDK
  • If you only run Java application (and do not compile), then you need JRE

JDK and JRE you can download from this site

Silent installEdit

Sometimes it is needed to install JDK (or JRE) silently (w/o user intervention). In this case, it is worth checking following articles: