News for hackers. Stuff that matters.
Re:JDeploy – Deploy desktop Java apps as native bundles on M... by Ingon on Monday February 14, 2022 @10:46PM (#30342529)
Also, Swing is just there, so for a simple app you don’t need to figure out dependencies or how to fit JavaFX into maven/gradle.
Re:JDeploy – Deploy desktop Java apps as native bundles on M... by whartung on Monday February 14, 2022 @11:57PM (#30342958)
I haven't seemed to be running into any problems ... yet ... with JavaFX maven dependencies. It pretty much Just Works(tm).

A single main dependency (org.openjfx/javafx-control) and a plugin (org.openjfx/javafx-maven-plugin) and you're off to the races. I don't install JFX into the JDK at all (not even sure, honestly, if that's still a thing).

I have more problems with JDK 9 modules (which modern JavaFX seems to support, but good luck with much of anything else of size).

Since I am pretty much awful at GUI programming, I've made a lot more progress with FX on my home projects than Swing. It's no panacea, but it's been working for me.

Re:JDeploy – Deploy desktop Java apps as native bundles on M... by invalidname on Tuesday February 15, 2022 @02:43AM (#30343801)
Did you actually ship the app or is it something small scale?

The pain of JavaFX becomes apparent at deployment time. Installing in a small closed ecosystem is fine. Mass market with all the variance. Ugh.

Re:JDeploy – Deploy desktop Java apps as native bundles on M... by shannah78 on Monday February 14, 2022 @10:58PM (#30342624)
> figure out dependencies or how to fit JavaFX into maven/gradle.

I struggle with the same thing. jDeploy solves one half of that (deploying javafx is no longer a struggle). I think there is still room to make creating new projects simpler.

Re:JDeploy – Deploy desktop Java apps as native bundles on M... by brabel on Tuesday February 15, 2022 @02:29AM (#30343739)
Don't do that, use a JVM that includes JavaFX, as this project seems to do. If you use SDKMAN, there are a couple of vendors, including Zulu, that distribute the latest JDKs with JavaFX included.
Re:JDeploy – Deploy desktop Java apps as native bundles on M... by alex_suzuki on Tuesday February 15, 2022 @11:30AM (#30348679)
Liberica too. Crucially they als have a 32-bit Windows build.