javafxports / openjdk-jfx

The openjfx repo has moved to:
https://github.com/openjdk/jfx
GNU General Public License v2.0
1.01k stars 145 forks source link

Missing deployment manual #536

Closed amkhlv closed 5 years ago

amkhlv commented 5 years ago

How to deploy a JavaFX app?

Even just on Ubuntu, forget Windows and OS/X. Asking the end user to download and unzip Gluon SDK is too complex, forget it. Even if I somehow convince a person to do it, I have to tell them to run, in the terminal, java --module-path ~/.local/lib/javafx-sdk-11.0.2/lib/ --add-modules=javafx.base,javafx.controls,javafx.fxml,javafx.graphic ... seriously?

What I need is a single .jar file, the user clicks on it and the thing fires up.

I really do not want to sound negative, I just want to understand ... What is the philosophy behind JavaFX ? Is it supposed to be used on a desktop? The website https://openjfx.io/ mentions desktop use on the front page... Who are the intended users? Is it only for corporations?

I googled for deployment manual, but could not find anything.

nlisker commented 5 years ago

How to deploy a JavaFX app?

What I need is a single .jar file, the user clicks on it and the thing fires up.

See "Runtime images" in https://openjfx.io/openjfx-docs/.

Is it supposed to be used on a desktop?

Yes, and there's also a JavaFXPorts for mobile and embedded.

Who are the intended users?

Anyone.

amkhlv commented 5 years ago

Thank you ! Is there any way to achieve this with SBT assembly plugin ?

eugener commented 5 years ago

Since the SBT plugin does exist ( as far as I know), it is probably easier to convert the project to Gradle or Maven

amkhlv commented 5 years ago

The site says Java 12. Where can I find instructions for Java 11 ?

eugener commented 5 years ago

There should be no difference as far as using plugins. It comes down to setting correct version of JavaFX. Starting with JavaFX 11 all versions of it available from Maven Central

amkhlv commented 5 years ago

Yes, this works. Thank you for your kind explanations !