The Java Development Toolkit (JDK) is a software development kit that provides a set of tools for developing, testing, and running Java applications. It includes the Java Runtime Environment (JRE), which provides the libraries, frameworks, and tools required to run Java programs. The JDK also includes development tools such as the Java compiler, debugger, and profiler, which are essential for building and testing Java applications.
You should see output similar to:
On Windows, check “Set JAVA_HOME” during installation. On macOS/Linux, you may need to set JAVA_HOME manually (instructions below).
Restart your terminal and run java -version again.
Once your JDK is installed: