Book Image

OpenJDK Cookbook

Book Image

OpenJDK Cookbook

Overview of this book

Table of Contents (20 chapters)
OpenJDK Cookbook
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
Index

Running and testing the early access preview of OpenJDK 9


We will get the newest OpenJDK code available and will test for feature availability. Don't hesitate to try new features, they may be available in the newer releases. Since the OpenJDK 9 release, it will remain the fastest way to give OpenJDK 9 a test. Hopefully, upon the release, the same thing will work for OpenJDK 10.

Getting ready

You will need an Internet connection. Aside from that, nothing is needed.

How to do it...

We will download, unpack, and run the latest publicly available full OpenJDK build:

  1. Open the page https://jdk9.java.net/.

  2. Download the early access preview, as shown:

  3. Run an installer.

  4. You can find out how to install OpenJDK from an archive in Chapter 1, Getting Started with OpenJDK of this book.

Test some interesting features that are already included in the early access JDK. Look at the following code:

        DatagramSocket socket = new DatagramSocket(4445);
        System.out.println(socket.supportedOptions());

When...