Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

SDKMAN!

See the page on

Now install Java:

sdk install java 17.0.3-zulu

Note, the JDK will be installed in a hidden folder located at (You may have to press Ctrl + H to view hidden folders in Ubuntu's file explorer):

~/.sdkman/candidates/java/17.0.3-zulu
Multiexcerpt
MultiExcerptNameOpenJDK Ubuntu

Use apt to install openjdk-17-jdkopenjdk-17-doc, openjdk-17-source:

Verify installation by opening a terminal and typing

Multiexcerpt
MultiExcerptNameSDKMAN

Jetbrains Runtime

The Jetbrains runtime (customized JDK) is an option for installing on Linux. It provides font rendering fixes. Read more here.

Manual Azul Zulu JDK

Manually install Azul's Zulu JDK:

Code Block
$ curl -sL https://cdn.azul.com/zulu/bin/zulu17.34.19-ca-jdk17.0.3-linux_x64.tar.gz -o zulu.tar.gz
$ tar -xvzf zulu.tar.gz
# mv zulu17.34.19-ca-jdk17.0.3-linux_x64/ /opt/.
# rm /opt/zulu
# ln -s /opt/zulu17.34.19-ca-jdk17.0.3-linux_x64/ /opt/zulu


Windows

Multiexcerpt
MultiExcerptNameJava SDK Windows

Oracle (recommended)

Download installer from https://www.oracle.com/java/technologies/downloads/#java17. The x64 MSI installer is the most convenient. Default installation settings are fine.

Verify installation. Open a terminal and call

Something like the following should be outputted:


Aside: java will be installed at the location

Azul

Info

We needed Azul JDK for Java 8 but there is no real need anymore. Any JDK distribution should work.

Info

Don't use the JavaFX version of Zulu. Instead use the standard version https://www.azul.com/downloads/?version=java-17-lts&os=windows&architecture=x86-64-bit&package=jdk

Azul is providing JDK 17 with JavaFX as part of their community Zulu distribution. You may also reference the official Zulu Installation Guide including the Installation on Windows Using the Zulu ZIP File page.

  1. Visit https://www.azul.com/downloads/zulu-community/?architecture=x86-64-bit&package=jdk-fx
  2. Under Zulu Community Downloads, select:
    1. Java Version: Java 17 (LTS)
    2. Operating System: Windows
    3. Java Package: JDK FX (if not already selected)
  3. Download the zip distribution and extract the contents to a temporary folder
  4. Move the extracted folder to something like C:\Program Files\Zulu\zulu17.34.19-ca-fx-jdk17.0.3-win_x64
  5. In Windows > System Properties > Environment Variables
    1. Append the bin directory of the JDK to the PATH variable (i.e PATH=<other_stuff>;C:\Program Files\Zulu\zulu17.34.19-ca-fx-jdk17.0.3-win_x64\bin)
    2. Under System Variables, set JAVA_HOME to the JDK directory (i.e JAVA_HOME=;C:\Program Files\Zulu\zulu17.34.19-ca-fx-jdk17.0.3-win_x64). Move it to the top of the list if you have multiple versions
  6. Make sure you configure your IDE settings to reference this JDK. There will probably be 2 references - the Java compiler and the gradle compiler
  7. (Optional) Open a new console and check that java -version prints something like the following
Code Block
java -version
openjdk version "17.0.3" 2022-04-19 LTS
OpenJDK Runtime Environment Zulu17.34+19-CA (build 17.0.3+7-LTS)
OpenJDK 64-Bit Server VM Zulu17.34+19-CA (build 17.0.3+7-LTS, mixed mode, sharing)

Image Removed

Note: JDKs are also available from https://adoptopenjdk.net/, but they won't provide JavaFX, which breaks most of IHMC's robotics software.

Mac OS X

Download JDK and JavaFX from https://adoptopenjdk.net/ or https://www.azul.com/downloads/zulu/zulufx/

Download JavaFX 17 from https://www.azul.com/downloads/zulu-community/zulufx/

Info
titleNeeds help

This section needs more info. No one has tried this yet.


Configuration

Logging

See the IHMC Log Tools README for details on enabling different log levels.

...