Safekipedia

Java Development Kit

Adventurer · ages 7–10Adapted from Wikipedia

The Java Development Kit (JDK) is a software development kit used to build applications for the Java platform.

The JDK is mainly made to work with the Java Runtime Environment (JRE). Other languages that run on the JDK can take its place if they can communicate with the JRE and JVM. Java bytecode can also be turned into native code using only a JVM, without the Java runtime environment running at the same time.

The JDK follows the Java Language Specification (JLS) and the Java Virtual Machine Specification (JVMS). It provides the Standard Edition (SE) of the Java Application Programming Interface (API). It comes from the OpenJDK project, which is run by the community and managed by Oracle.

The JDK includes tools for working with Java applications. These include the Java virtual machine, a compiler, tools for watching how programs perform, a debugger, and other helpful utilities.

Oracle releases the current version of the software under the Oracle No-Fee Terms and Conditions (NFTC) license. It makes versions for the x86-64 design on Windows, macOS, and Linux, and for the aarch64 design on macOS and Linux. Older versions worked with the Oracle Solaris operating system and the SPARC design. Oracle's main version of the JVMS is called HotSpot.

JDK contents

The JDK comes with many programming tools. The java tool starts Java programs, and the javac tool, a Java compiler, turns source code into Java bytecode. Other tools help developers in different ways. javadoc creates documentation from source code comments, and jar packs related libraries into a single JAR file. Developers can also use jshell, a read–eval–print loop added in Java 9, the debugger jdb, and JConsole to watch and manage Java programs. Some tools work with files and programs in other ways. keytool manages a keystore, pack200 compresses JAR files, and VisualVM combines several command-line tools with performance and memory checking. However, VisualVM is no longer included in JDK 9 and later. Some tools are marked as experimental, so they may not be available in future versions.

The JDK also includes a complete Java Runtime Environment (JRE). The JRE has a Java virtual machine and the libraries needed to run programs. The JDK adds extra libraries that only developers need, such as internationalization libraries. Copies of the JDK also include many example programs that show how to use most parts of the Java API.

Other JDKs

Besides the JDK used most widely, there are other JDKs for many kinds of computers and systems. Some were started from Sun's JDK source, and some were not. They all follow the basic Java rules, but they can differ in areas those rules do not cover, such as garbage collection, compiling, and optimization.

Some are still being developed or maintained. Azul Systems makes Zing, a low latency JDK for Linux. It also makes Zulu, which is based on OpenJDK and works on Linux, Windows, Mac OS X, embedded systems, and the cloud. GraalVM is an advanced JDK with ahead-of-time Native Image compilation. Others include OpenJDK / IcedTea, Aicas JamaicaVM, and the IBM J9 JDK. The IBM J9 JDK works on AIX, Linux, Windows, MVS, OS/400, Pocket PC, and z/OS.

Some are no longer maintained or have been discontinued. These include Apache Harmony, Apple's Mac OS Runtime for Java JVM/JDK for Classic Mac OS, Blackdown Java, which is a port of Sun's JDK for Linux, and GNU's Classpath and GCJ (The GNU Compiler for Java). Oracle Corporation's JRockit JDK, which worked on Windows, Linux, and Solaris, is also in this group.

Quiz time!

4 questions about Java Development Kit

Question 1 of 4

What is the Java Development Kit (JDK) used for?

Keep exploring

This article is a child-friendly adaptation of the Wikipedia article on Java Development Kit, available under CC BY-SA 4.0.