Downloading and Installing JDK 13

This section describes how to download and install JDK 13 on a macOS system.

To learn Java, you need to have a copy of JDK (Java Development Kit) installed on your machine. The current version of JDK is JDK 13, which is also called Java SE (Standard Edition) 13 Here is what I did to download and install JDK 13 on my Windows machine.

1. Go to Oracle Java SE download website at oracle.com/technetwork/java/javase/downloads/index.html.

2. Click "Download" next to "Java Platform (JDK) 13".

3. Click "jdk-13_osx-x64.bin.tar.gz" from the download list. It will be saved to your "Downloads" directory automatically.

4. Start a Terminal window and run commands below to install it.

herong$ cd ~/Downloads

herong$ gunzip jdk-13_osx-x64.bin.tar.gz

herong$ tar -xf jdk-13_osx-64.bin.tar

herong$ sudo mv jdk-13.jdk/ /Library/Java/JavaVirtualMachines/

To test the installation, open a command window to try the java command. If you are getting the following output, your installation was ok:

herong$ java -version
java version "13" 2019-09-17
Java(TM) SE Runtime Environment (build 13+33)
Java HotSpot(TM) 64-Bit Server VM (build 13+33, mixed mode, sharing)

Table of Contents

 About This Book

JDK - Java Development Kit

Downloading and Installing JDK 13

 JDK Documentation Installation

 Downloading and Installing JDK 10

 Writing My First Java Program

 Adding JDK "bin" Directory to Path Setting

 JDK 10 Documentation Installation

 Execution Process, Entry Point, Input and Output

 Primitive Data Types and Literals

 Control Flow Statements

 Bits, Bytes, Bitwise and Shift Operations

 Managing Bit Strings in Byte Arrays

 Reference Data Types and Variables

 Enum Types and Enum Constants

 StringBuffer - The String Buffer Class

 System Properties and Runtime Object Methods

 Generic Classes and Parameterized Types

 Generic Methods and Type Inference

 Lambda Expressions and Method References

 Java Modules - Java Package Aggregation

 Execution Threads and Multi-Threading Java Programs

 ThreadGroup Class and "system" ThreadGroup Tree

 Synchronization Technique and Synchronized Code Blocks

 Deadlock Condition Example Programs

 Garbage Collection and the gc() Method

 Assert Statements and -ea" Option

 Annotation Statements and Declarations

 Java Related Terminologies

 Outdated Tutorials

 References

 Full Version in PDF/EPUB