Appendix D. Using the Java Development Kit

Oracle offers the Java Development Kit (JDK), a free set of command-line programs that are used to create, compile, and run Java programs. Every new release of Java is accompanied by a new release of the development kit. The current version is JDK version 12.

Although NetBeans and other integrated development environments (IDEs) such as IntelliJ IDEA and Eclipse are more sophisticated, some programmers continue to use the Java Development Kit. This appendix covers how to download and install the JDK, set it up on your computer, and use it to create, compile, and run a simple Java program.

It also describes how to fix a common configuration problem faced by JDK users.

Choosing a Java Development Tool ...

Get Sams Teach Yourself Java in 21 Days (Covers Java 11/12), 8th Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.