Java JDK capable of running JavaFX applications on Jetson boards with OpenGL acceleration

Hi there,

regarding the use of the Jetson boards (I have both a TX2 and a Nano), I should consider whether it is possible to use a java application (possibly jdk 8u112 based) that uses the jfx library with OpenGL acceleration.

I didn’t find any useful and up-to-date information except that probably I have to use openjdk and openjfx.

Could you give me some links about a complete working package?

Thx in advance

  • Stefano

Hi,
There is no Java involved in each L4T releases, so it is highly possible it does not work.
If there is Java packages for arm64(aarch64), you may give it a try. Don’t see many discussions about running Java on Jetson platforms, but probably some users can share experience.

Stefano,
I’m using A LOT of Java (including Java FX and JCuda) in my SBC’s projects (jetson nano, rbpi’s and odroids XU4).

I’ve sent you a private message yesterday about this question.

Please let me know if you have other questions.

BR,
Ivan

Hi,

I would like to ask if you managed to resolve getting JavaFX to work on the TX2?

I’ve been trying and installing different editions of java without success. Any help would be much appreciated.

Thank you,
Chris

I got it to work… for anyone else that lands here I did the following:

  1. Downloaded Liberica JDK version 11 - from options Linux/Arm/Full JDK Deb file
  2. Installed as sudo from terminal - sudo apt install ./name_of_file.deb
  3. From https://gluonhq.com/products/javafx/ downloaded the v11 JavaFX Linux SDK not the armv6hf
  4. extracted the JavaFX to a folder in the home directory
  5. from https://openjfx.io/openjfx-docs/#install-javafx followed instructions to add PATH_TO_FX in path
  6. from https://github.com/openjfx/samples/blob/master/HelloFX/CLI/hellofx/HelloFX.java downloaded sample javaFX file
  7. compiled with javac --module-path $PATH_TO_FX --add-modules javafx.controls HelloFX.java
  8. ran the sample file with java --module-path $PATH_TO_FX --add-modules javafx.controls HelloFX

Thanks

1 Like