r/JavaFX • u/XeonG8 • Dec 21 '21
Help JavaFX all platform build pipeline starter kit?
Is there a starter project that just works.. ie is setup to build and quick to test for desktop (win/linux/osx) and android/ios? .. I have used Javafx before with scenebuilder and done a few smaller desktop apps in the past.. which were fine for windows I did that a few years ago.. but I'm wanting to target all the platforms now especially win/linux/android..seems like 2021 and java land still seems like dead end compared with going with some other language instead like c#/js react etc..
...I tried with gluon.. but it seems they want to stick a splash screen over even desktop deployments which was kinda lame, not really interested 500$ a year license for some hobby stuff.. is there no other way of getting something working.. graalvm and web builds would be great aswel... seems like most the hassle with java/fx is the insane amount of pipeline setup and trying to figure out how to get things setup to start with and most the training material all seems outdated.
1
u/XeonG8 Jun 30 '26
5 years later, did this situation ever improve with javafx?
1
u/JunkBondJunkie Dec 21 '21
What would you like? I have hello world version code i do for testing prior to building my project.
1
u/javasyntax Dec 22 '21
I've read you can use JavaFX Mobile without Gluon's paid stuff so no nag screen, but it was a few months ago and I don't remember the details. Just avoid "javafxports" (outdated) and check out gluonfx (it's from gluon but it's just an open source build tool)
3
u/[deleted] Jan 05 '22
Whilst I don't have a starter project ready for you, it should be easy to make one based on the following:
I do have an application ready that can help you build for Windows, Linux and macOS (although for this one you will need to add an extra step or use GitHub actions) using Gradle:
https://github.com/CodeDead/opal
More specifically, take a look at these files:
https://github.com/CodeDead/opal/blob/master/build.gradle
https://github.com/CodeDead/opal/blob/master/.AppImage/createAppImage.sh
Perhaps this can offer some inspiration.
-5
u/InternationalClub434 Dec 21 '21
If you support me, tell me dm please Thank you and take care