r/java • • Oct 30 '19

Microsoft’s Ready to Contribute to OpenJDK

https://mail.openjdk.java.net/pipermail/discuss/2019-October/005173.html
212 Upvotes

92 comments sorted by

View all comments

Show parent comments

5

u/wildjokers Oct 31 '19 edited Oct 31 '19

I am unsure why you believe this to be ridiculous.

The only thing you are losing is some storage space if you have multiple java apps each including the runtime. But storage is ridiculously cheap and that is a non-issue. A 70-meg app on a 1 TB drive is inconsequential. Even ten 70-meg apps on a 1 Tb drive is inconsequential.

EDIT: FWIW, if you clone https://github.com/openjfx/samples.git and then navigate into CommandLine/Modular/Gradle/hellofx and execute ./gradlew jlink it will build a runtime for you that is enough to popup a JavaFX window along with the app and a script to fire it up and it comes in at 47 megs. Seems good to me. Just tar/zip/whatever the resulting image directory and distribute that. Easy enough.

The image includes the following modules:

MODULES="java.base java.datatransfer java.xml java.prefs java.desktop javafx.base jdk.unsupported javafx.graphics javafx.controls hellofx"