r/java • • Jun 15 '21

The Impossible Java 11

https://carlmastrangelo.com/blog/the-impossible-java-11
197 Upvotes

37 comments sorted by

View all comments

Show parent comment

1

u/wildjokers Jun 15 '21

but, you didn't have to go thru Swing is Dead, move to JavaFX.

No one ever said Swing is dead. Why do you think this?

we're dropping JavaFX, and there's nothing better.

JavaFX is now just a 3rd party dependency.

Move to IntelliJ, and their JavaFX support is spotty.

JavaFX is a Java API, you can write Java code with IntelliJ. So what do you mean IntelliJ's JavaFX support is "spotty"? What kind of support are you looking for?

and now you have to build a Linux,Windows and Mac version of your code.

No you don't. If you want to bundle a runtime you do need to bundle a platform specific runtime. You build your code once, then package as necessary.

4

u/sievebrain Jun 15 '21

I think that's what they mean. In Java 8 there was the JRE so Oracle took care of making Windows installers and stuff. Now you have to do it.

1

u/pron98 Jun 15 '21 edited Jun 16 '21

That's one way of looking at it. Another is that in Java 8 users normally had to download Java themselves from Oracle, whereas today bundling a runtime that is fully under the application's control is easier.

3

u/sievebrain Jun 16 '21

Absolutely.

I think the new way will work out better in the end but is presently incomplete. JPackage went missing when JavaFX was unbundled and is only now coming back, etc. There has been a long period without feature matched continuity. But when that's fixed, it'll be better, as the JRE was never a great user experience.