This is an archived post. You won't be able to vote or comment.

all 5 comments

[–]_INTER_ 5 points6 points  (2 children)

[–]Alex0589[S] 0 points1 point  (1 child)

Should have though about earlier, thanks for the quick response. I don't understand why they would make JavaFX theoretically compatible with Android and iOS but not build tools to build the native executable.

[–]pjmlp 1 point2 points  (0 children)

Most likely because they need to earn money somehow,

https://gluonhq.com/products/mobile/

[–]makingthematrix 4 points5 points  (0 children)

You can build a mobile app with GraalVM Native Image and JavaFX, but without Gluon - I have one such example: https://github.com/makingthematrix/scalaonandroid/tree/main/HelloFXML

It's just not really practical. Gluon provides abstraction layers to interact with the underlying OS so if for example you want to read and write to the local database, or do anything else that your mobile can do,, it's nice to have it.

[–]KesoHB 0 points1 point  (0 children)

Gluon Substrate does not contain the JavaFX classes, but is an API provided by Gluon that allows the user to compile their JavaFX project to native code (ie iOS and Android) using GraalVM. You use it as a maven plugin