Live data from Hacker News

Which version of JDK should I use?

whichjdk.com

111–120 of 258 posts

Re: Which version of JDK should I use?

#111

Earlier quoted context omitted.

When Oracle acquired Sun in 2010-11, Sun had not shipped a new release of Java in more than four years.[0] That's hardly a "stability" worth treasuring. Since then, Oracle completely open-sourced the JDK and the associated tools and gave the the compatibility kits to the community to use. The result is that there are now several different distributions of the JDK. This is undeniably a good thing. As to the 6-month re…

> When Oracle acquired Sun in 2010-11, Sun had not shipped a new release of Java in more than four years.[0] That's hardly a "stability" worth treasuring. Sun went several years without releasing a new major version, but that same page lists frequent minor updates. So yes, I would call that exactly a stability to treasure.

More like stagnation.

Re: Which version of JDK should I use?

#112
post #4

Yeah I agree we should be using 17 except Gradle still does not support it, despite having been out for an entire month... https://docs.gradle.org/current/userguide/compatibility.html

Which is funny because EA builds were out there much longer, just RC was out there for another month.

Re: Which version of JDK should I use?

#116
post #23

The general guidance is always use the last LTS release unless there is a specific feature in the non LTS releases that you can’t wait for. So any new development should target 17 at this point. Unless you want serious long term pain then you shouldn’t be more than one LTS release behind. So if you are not running on JDK 11 or later you should be strongly thinking about upgrading.

Why should I stick to LTS? All other versions aren't in any way less tested, you should always stick to the newest released JDK version, be it LTS or not, this way you get all the benefits (language features, performance gains) and security ones (security fixes always first land in the newest version, and are backported to the older ones). Upgrades now are pretty straightforward if you are past JKD 9 - with JDK 16-17…

LTS = long term support

Support for vulnerability patches, stability, and so on. You can automatically update and maybe that goes well and maybe problems are caught in testing. Regardless those events and changes have over time have increased costs. LTS should mean lower costs both through increased support focus, increased population of active users, and reduced forced change.

You're not wrong...

Re: Which version of JDK should I use?

#117

Earlier quoted context omitted.

There's no real reason to use java for new development in 2021.

Java is way better than .net, which nobody at all uses outside MS. Certainly not in enterprise.

>Certainly not in enterprise.

pretty odd take, in which country?

Re: Which version of JDK should I use?

#119
post #10

Why its recommends against using OpenJDK builds by Oracle? Does it come with the same licensing restriction as Oracle JDK?

OpenJDK builds by Oracle are updated only for 6 months, even for LTS versions. Plus these builds are provided for limited platforms only and have no official ready-to-use Docker images.

Well, I use those, because I uprade every 6 months. And my company forces me to use theirs docker image and I put java on top of it.

BTW. Limited platforms, but covers most of the cases (64 bit linux, windows, mac plus aarch64 for linux and mac)

Post reply on HN