We currently run Java 17.
Panel | ||||||
---|---|---|---|---|---|---|
| ||||||
|
JDK Installation
Ubuntu
OpenJDK is the recommended JDK to install.
OpenJDK
Multiexcerpt | ||
---|---|---|
| ||
Use apt to install |
...
SDKMAN!
See the page on SDKMAN!
Before starting, a useful command to remember is "list" which shows all available versions:
sdk list java
Now install JavaFX:
sdk install java 17.0.3-zulu
Note, the JDK will be installed in a hidden folder located at:
~/.sdkman/candidates/java/17.0.3-zulu
Azul Zulu JDK
Manual Installation is no longer necessary for Java17. However these are the steps:
Manually install Azul's Zulu JDK.
Example
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 |
Jetbrains Runtime
The Jetbrains runtime (customized JDK) is an option for installing on Linux. It provides font rendering fixes. Read more here.
Windows
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.
...
Verify installation by opening a terminal and typing |
Windows
Multiexcerpt | ||
---|---|---|
| ||
Oracle (recommended)Download installer from https://www. |
...
...
- Java Version: Java 17 (LTS)
- Operating System: Windows
- Java Package: JDK FX (if not already selected)
...
- 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
) - 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
...
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) |
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 | ||
---|---|---|
| ||
This section needs more info. No one has tried this yet. |
/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 |
Configuration
Logging
See the IHMC Log Tools README for details on enabling different log levels.
Testing
For testing in IDE, see Unit Testing/wiki/spaces/HOWTO/pages/14288377. For testing with Gradle and on Bamboo, see IHMC CI Gradle plugin and Integrating with Bamboo /wiki/spaces/HOWTO/pages/14288249.
JVM options
Warning |
---|
Needs updating for Java 17. |
...
See Java Platform Module System
Learning Resources
- Guide: Learning Java
- The Java™ Tutorials
- Thinking in Java (ISBN 978-0131872486) by Bruce Eckel
...