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?
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.
JavaFX launchApplication method: launchMode=LM_CLASS
Prism pipeline init order: es2 sw
Using Double Precision Marlin Rasterizer
Using dirty region optimizations
Not using texture mask for primitives
Not forcing power of 2 sizes for textures
Using hardware CLAMP_TO_ZERO mode
Opting in for HiDPI pixel scaling
Prism pipeline name = com.sun.prism.es2.ES2Pipeline
Loading ES2 native library … prism_es2
WARNING: java.lang.UnsatisfiedLinkError: /home/rpease/JavaFXTests/javafx-sdk-11.0.2/lib/libprism_es2.so: /home/rpease/JavaFXTests/javafx-sdk-11.0.2/lib/libprism_es2.so: cannot open shared object file: No such file or directory (Possible cause: can’t load AMD 64-bit .so on a AARCH64-bit platform)
GraphicsPipeline.createPipeline failed for com.sun.prism.es2.ES2Pipeline
java.lang.UnsatisfiedLinkError: no prism_es2 in java.library.path: [/usr/java/packages/lib, /lib, /usr/lib]
at java.base/java.lang.ClassLoader.loadLibrary(ClassLoader.java:2670)
Looks like the file is meant for x86:
rpease@jetsonnano:~/JavaFXTests$ file /home/rpease/JavaFXTests/javafx-sdk-11.0.2/lib/libprism_sw.so
/home/rpease/JavaFXTests/javafx-sdk-11.0.2/lib/libprism_sw.so: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, BuildID[sha1]=812b7fa79ea11554bfb6c5b3503145528f1239f5, not stripped
Unfortunately I’ve since removed the install from my device (TX2) so I’m unable to check. I had a lot of trouble getting it to work with my specific project. I would have loved to use JavaFX for the UI.
I ended up using Python with GTK + webkit view to load a html / bootstrap file locally on the device.