I'm not familiar with Github Live--other than reading their page just now. I do use Github for a closed source project so it doesn't seem like a good fit for me.
Anyway, if you're asking how to get your JavaFX project to run as a client-side-only web page, you've only got a couple limited options:
JPro. I think they will run your app on their server and display the UI as a web page. But you have to work with their hosting and pay them to do so. Of course you'll have to host somewhere, so maybe not so bad.
WebFX. Trans-piles (like GWT) your code to a web page that you can upload to your own server. But it is pretty limited in how many controls it supports. (Buttons, Textfields--yes; but for example a ComboBox isn't.)
One thing that may be around the corner is CheerpJ is talking about supporting JavaFX in the browser, but they haven't committed to a timeline.
There are other ways to run Java in the browser (CheerpJ for AWT/Swing, TeaVM, GWT, etc) but JavaFX kinda came out at a bad time and was never embraced as a possible web front end.
5
u/indyjoe Jul 05 '25 edited Jul 05 '25
I'm not familiar with Github Live--other than reading their page just now. I do use Github for a closed source project so it doesn't seem like a good fit for me.
Anyway, if you're asking how to get your JavaFX project to run as a client-side-only web page, you've only got a couple limited options:
One thing that may be around the corner is CheerpJ is talking about supporting JavaFX in the browser, but they haven't committed to a timeline.
There are other ways to run Java in the browser (CheerpJ for AWT/Swing, TeaVM, GWT, etc) but JavaFX kinda came out at a bad time and was never embraced as a possible web front end.
If anyone knows better, please comment!
2
u/Quiet-Protection-176 Jul 06 '25
Gluon started developing something for JavaFX in the browser, but I don't think it's actively maintained ? Anyway, here's a link, it might just work: https://gluonhq.com/developer-preview-for-javafx-inside-a-web-browser/
2
u/sedj601 Jul 07 '25
Have a look at https://www.jpro.one/? to see if it can help.