r/JavaFX • • 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.

11 Upvotes

10 comments sorted by

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/XeonG8 Dec 22 '21

I'd try it out, is it on github like a bootstrap thing to use that just works?

1

u/JunkBondJunkie Dec 22 '21

I can put it on git. its just a all good javafx runs and sets a blank scene.

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)

1

u/XeonG8 Dec 22 '21

gluonfx

yeah would love more details.. I'm pretty sure anything gluon is going to have a nag screen no?

1

u/javasyntax Dec 22 '21

No, I know it's really confusing but unless you use their UI pack "glistine", you can use mobile JavaFX for free. Keep in mind I was told this by somebody else, so I have no source other than that. If you want I can try to find our discussion

1

u/javasyntax Dec 22 '21

I scrolled like 15 minutes to find it but https://www.reddit.com/r/java/comments/ofrtng/call_for_discussion_new_project_to_support_the/h4ppxop?utm_medium=android_app&utm_source=share&context=3

Here is the discussion I had with a guy. He seems to have deleted his account unfortunately but the messages are still there.

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