O'Reilly logo

Java 9 Cookbook by Nick Samoylov, Mohamed Sanaulla

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

How to do it...

  1. Follow the Steps 1 and 2 of the Installing JDK 9 on Windows and setting up the PATH variable recipe to reach the downloads page.
  2. Copy the download link (tar.gz) for the JDK for the Linux x64 platform from the downloads page. 
  3. Download the JDK by using $> wget <copied link>, for example, $> wget http://download.java.net/java/jdk9/archive/180/binaries/jdk-9+180_linux-x64_bin.tar.gz.
  4. Once the download completes, you should have the relevant JDK available, for example, jdk-9+180_linux-x64_bin.tar.gz. You can list the contents by using $> tar -tf jdk-9+180_linux-x64_bin.tar.gz. You can even pipe it to more to paginate the output: $> tar -tf jdk-9+180_linux-x64_bin.tar.gz | more.
  5. Extract the contents of the tar.gz file under

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required