# Use of JavaFX on Canton Community 0.27.0

**URL:** <https://forum.canton.network/t/use-of-javafx-on-canton-community-0-27-0/3086>\
**Category:** App Development\
**Tags:** java, javafx, canton\
**Created:** [September 8, 2021, 10:26am UTC](https://forum.canton.network/t/use-of-javafx-on-canton-community-0-27-0/3086 "2021-09-08T10:26:54Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![quidagis](https://avatars.discourse-cdn.com/v4/letter/q/dbc845/32.png) [@quidagis](https://forum.canton.network/u/quidagis)\
**Post date:** [September 8, 2021, 10:26am UTC](https://forum.canton.network/t/use-of-javafx-on-canton-community-0-27-0/3086/1 "2021-09-08T10:26:54Z")

</div>

Hi Canton Team,

Went to run the Demo example from [Canton Demo](https://www.canton.io/docs/stable/user-manual/tutorials/demo.html?highlight=javafx) but it failed.

```haskell
$ 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](https://www.canton.io/videos/canton-demo.mp4)

AFAIK, the only reference to `JavaFX` in the entire docs _is_ the Demo.

---

<div class="post-metadata">

**Author:** ![davidpadbury](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/davidpadbury/32/447_2.png) [@davidpadbury](https://forum.canton.network/u/davidpadbury)\
**Post date:** [September 8, 2021, 3:13pm UTC](https://forum.canton.network/t/use-of-javafx-on-canton-community-0-27-0/3086/2 "2021-09-08T15:13:47Z")

</div>

Hi @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.

---

<div class="post-metadata">

**Author:** ![quidagis](https://avatars.discourse-cdn.com/v4/letter/q/dbc845/32.png) [@quidagis](https://forum.canton.network/u/quidagis)\
**Post date:** [September 8, 2021, 9:12pm UTC](https://forum.canton.network/t/use-of-javafx-on-canton-community-0-27-0/3086/3 "2021-09-08T21:12:19Z")

</div>

Thank you for explaining that 👍🏻
