You need the JDK to convert your source code into a format that the Java Runtime Environment (JRE) can execute . The JDK includes the Java Runtime Environment (JRE), an interpreter (java), a compiler (javac), an archiver (jar), a documentation generator (javadoc), and some other development tools.