r/java • • Mar 19 '19

Java 12 Released !!!

https://www.oracle.com/technetwork/java/javase/downloads/jdk12-downloads-5295953.html
235 Upvotes

98 comments sorted by

View all comments

Show parent comments

5

u/MMPride Mar 20 '19

Well, you have to add a lot of modules if you're using JavaFX, like, 250 characters worth of modules... other than that, upgrading to Java 11 is mostly okay depending on what dependencies your app uses.

I gotta admit, the add-module shit isn't quite as nice as just java -jar app.jar.

4

u/KamiKagutsuchi Mar 20 '19

Or just include a dependency on openjfx 11?

2

u/MMPride Mar 20 '19

If the jar is built with Java 9+ support in mind, yeah. If the jar is no longer maintained and you are stuck with a version that doesn't have module support built in? Well, then you may need hundreds of characters instead of just java -jar app.jar.

2

u/endeavourl Mar 20 '19

Isn't is supposed to add them automatically when the jar is also a module that declares it's module dependencies?

1

u/MMPride Mar 20 '19

If the jar is built with Java 9+ support in mind, yeah. If the jar is no longer maintained and you are stuck with a version that doesn't have module support built in? Well, then you may need hundreds of characters for adding modules instead of just java -jar app.jar.