openjfx-docs icon indicating copy to clipboard operation
openjfx-docs copied to clipboard

Misleading Line In Getting Started

Open wiverson opened this issue 4 years ago • 4 comments

Non-modular application

Since Java 9, applications should be modular, and distributed with tools like jlink.

I would suggest that this entire section be reworked to deemphasize trying to make the end user application modular. I tried to make this work and ran into nothing but problems.

I spent a long, long time trying to make my app[s] fully modular and it was essentially impossible for anything but a trivial Hello World app. As soon as I brought in any dependencies it turned into a nightmare.

Here is a very simple, clean Maven template for building a JavaFX app, including GitHub Actions for creating the installers.

https://github.com/wiverson/maven-jpackage-template

Feel free to grab any/all of it for the JavaFX documentation.

wiverson avatar Mar 19 '21 16:03 wiverson

I agree with this, I spent long hours trying to make a modular app to work. With no success. I wasn't lucky enough to see this issue at the first try.

antmordel avatar Apr 07 '21 19:04 antmordel

This part of the documentation should get an update, especially now that jpackage is out of incubation and a part of jdk tools.

I will have a look at it, unless someone beats me to it :)

abhinayagarwal avatar Apr 08 '21 05:04 abhinayagarwal

I would be happy to send in some updates for docs. Is a PR the preferred process?

wiverson avatar Apr 08 '21 23:04 wiverson

@wiverson A PR would be great!

abhinayagarwal avatar Apr 09 '21 06:04 abhinayagarwal