Use of JavaFX on Canton Community 0.27.0
App Development3 posts510 views1 likesLast activity Sep 2021
QU
quidagisOP
Sep 2021Hi Canton Team,
Went to run the Demo example from Canton Demo but it failed.
$ cd opt/canton-community-0.27.0
$ bash start-demo.command
Detected Java version "11.0.11" (major: 11).
Java FX is not installed. It will be fetched automatically.
---
Truncated
---
@ Loading library prism_es2 from resource failed: java.lang.UnsatisfiedLinkError: /home/qadmin/.openjfx/cache/12.0.2/libprism_es2.so: libGL.so.1: cannot open shared object file: No such file or directory
java.lang.UnsatisfiedLinkError: /home/qadmin/.openjfx/cache/12.0.2/libprism_es2.so: libGL.so.1: cannot open shared object file: No such file or directory
---
Truncated
---
At which point, Canton seems to be running but was hung, and have to break the process to get back to Canton, using Ctrl-D.
Two queries:
- Is this the only requirement for JavaFX on this system, just to run that quality interactive demonstration?
- If not, then should we be using OpenJFX or JavaFX instead of a vanilla JRE/JDK?
The demonstration is viewable using the Demo Video
AFAIK, the only reference to JavaFX in the entire docs is the Demo.
DA
davidpadbury
Sep 2021Hi @quidagis,
Is this the only requirement for JavaFX on this system, just to run that quality interactive demonstration?
Correct. JavaFX is only a requirement to run the demonstration. Canton itself has no dependency on JavaFX and is fully intended to run in headless environments with no UI.
QU
quidagis
Sep 2021Thank you for explaining that 