r/JavaFX • u/brmdamon • Jun 01 '23
Help JavaFX for free software development
I'm trying to learn how to use JavaFX to develop "free" cross-platform software.
By cross-platform I mean both mobile and desktop. Java is a natural choice because its original design goal was "write once, run anywhere" and it it now widely used on mobile, desktop and server platforms. JavaFX is a natural choice for an application framework because it is able to target all those platforms.
My idea of "free" includes being able to build software using command line tools that are themselves free software. Ideally I want to be able to use a script invoking javac, jar, dx, aapt and other low-level tools to build an application. Some of the Java IDEs are nominally free software, but they are so huge that the programmer can never really understand what they are doing. Likewise, many build examples on the web show a command line that invokes gradlew, which in turn downloads gradle, which in turn implements recipes that the developer knows nothing about. I'm not dead set against using an IDE like Eclipse that hides many details from programmer, but I do not want to be dependent on a huge IDE that produces an application package by a process that is essentially magic.
The big stumbling block in implementing this concept of "free" cross-platform is the Android implementation of JavaFX. I admire and salute Gluon for supporting the continuing existence of JavaFX on Android. But most of their examples use their proprietary "compile to native code" tools. No doubt there's a big performance advantage for that approach. But I so far have not found a clear example, reasonably current, showing how to build and run a JavaFX "Hello World" using just low-level free tools.
Comments or suggestions would be welcome.
View all comments
Show parent comment
2
u/Birdasaur Jun 04 '23
This is not true depending on your definition of maintaining. Currently Oracle is the largest (by far) among multiple contributors and maintain a dedicated dev team for the project internally. Its dev and priorities are governed by an OpenJDK and OpenJFX group. What Oracle has stopped doing is including the JavaFX modules with their main modularized JDK distribution. Other vendors provide distributions with JavaFX added back in.
Well... they also stopped significant marketing... but they've done that for all their tech that isn't tied to the Oracle Cloud or "Autonomous Database" (puke) offerings.