xulihang Well-Known Member Licensed User Longtime User Yesterday at 7:09 AM #1 JavaFX 26 has added support for headless mode: https://gluonhq.com/introducing-the-headless-platform-for-javafx/ Can we use JavaFX APIs like bitmap creator and canvas in a B4J console app? It is useful to convert a ui app to a server app.
JavaFX 26 has added support for headless mode: https://gluonhq.com/introducing-the-headless-platform-for-javafx/ Can we use JavaFX APIs like bitmap creator and canvas in a B4J console app? It is useful to convert a ui app to a server app.
Daestrum Expert Licensed User Longtime User Yesterday at 10:06 AM #2 It does work, but not how you seem to think it does. It is still a UI application; it just doesn't attempt to use any graphics output. It's the same single threaded Javafx loop running (bad for servers), as a normal Javafx application. Upvote 0
It does work, but not how you seem to think it does. It is still a UI application; it just doesn't attempt to use any graphics output. It's the same single threaded Javafx loop running (bad for servers), as a normal Javafx application.
Erel B4X founder Staff member Licensed User Longtime User Today at 6:23 AM #3 It can still be useful as a console application that is started by the server for specific tasks. It was quite difficult to do with a regular UI app on Linux server: https://www.b4x.com/android/forum/t...-as-part-of-a-server-solution.123704/#content Instructions on using other versions of JavaFX: https://www.b4x.com/android/forum/threads/update-openjdk.140167/post-887747 Upvote 0
It can still be useful as a console application that is started by the server for specific tasks. It was quite difficult to do with a regular UI app on Linux server: https://www.b4x.com/android/forum/t...-as-part-of-a-server-solution.123704/#content Instructions on using other versions of JavaFX: https://www.b4x.com/android/forum/threads/update-openjdk.140167/post-887747
xulihang Well-Known Member Licensed User Longtime User Today at 8:38 AM #4 Starting a program with xvfb-run is slow. Click to expand... I think the headless mode now solves this problem. I can let the server starts a UI app for processing. Upvote 0
Starting a program with xvfb-run is slow. Click to expand... I think the headless mode now solves this problem. I can let the server starts a UI app for processing.