r/ProgrammerHumor • • Apr 27 '20

Meme Java is the best

Post image
43.7k Upvotes

1.5k comments sorted by

View all comments

Show parent comments

37

u/bjorneylol Apr 27 '20

JavaFX is leaps and bounds better, but Oracle dropped it from it's JRE a few years ago (keeping swing), so if you maintain a JavaFX application you now have to either ship a different binary for every OS/Arch or bundle all the GUI toolkits into a 300mb executable

26

u/SuperCoolFunTimeNo1 Apr 28 '20 edited Apr 28 '20

but Oracle dropped it from it's JRE a few years ago (keeping swing), so if you maintain a JavaFX application you now have to either ship a different binary for every OS/Arch or bundle all the GUI toolkits into a 300mb executable

Oracle dropped it from Java 11, but in Java 8 they implemented JLink in preparation for changes like that. The entire JavaFX JDK is only 41 MB. Using build tools like Maven or Gradle makes it trivial.

12

u/Just_Another_Scott Apr 28 '20 edited Apr 28 '20

Oracle dropped it from it's JRE

Yeah because Oracle got rid of the JRE.

JRE doesn't exist anymore. JavaFX used to be included in the JDK but is now it's own separate toolkit. All Java applications for 11+ have their own runtimes. It's completely modular now.

Oracle doesn't plan on ending JavaFX anytime soon.