Which Version of JDK Should I Use?

3 years ago by RandomDevOpsDude to c/java

Which Version of JDK Should I Use?

Interested in what folks use. I stick to temurin unless guaranteed to deploy in AWS then I use corretto.

pohart 9 points 3 years ago

I use temurin, but you're really okay with anything but oracle's jdk. You want to do what you can to avoid an Oracle audit.

path: 0 306076, hotness: undefined, score: 9, children: 4
fabian 5 points 3 years ago

Seconded. Really, anything but the oracle JDK.

path: 0 306076 313845, hotness: undefined, score: 5, children: 0
RandomDevOpsDude 2 points 3 years ago

Sometimes the audit is unavoidable. Recently went through one, and my first thought was "wait, people still use oracle jdk?". Thankfully not my job to deal with, but I guess some companies never migrated off which blows my mind, but, to each their own I guess. Oracle is coming around looking for a paydays.

path: 0 306076 323385, hotness: undefined, score: 2, children: 0
Sheldan 2 points 3 years ago

I still cant believe that oracle did it that bad, that people switched off the JDK just entirely

path: 0 306076 334128, hotness: undefined, score: 2, children: 1
pohart 1 point 3 years ago

The jdk itself is fine, but the licensing terms are ridiculous. To their credit they waited to implement the terrible terms until there were multiple drop-in replacements.

path: 0 306076 334128 378329, hotness: undefined, score: 1, children: 0
JackbyDev 2 points 3 years ago

Yeah, whenever I have a choice I use Temurin. Adoptium (formerly AdoptOpenJDK) deserves credit for making Windows builds of OpenJDK very easy to use.

path: 0 335459, hotness: undefined, score: 2, children: 0
Hesham_SHY 2 points 3 years ago

I usually go with temurin, I like there policies.

About what version should you use, if you are deploying whatever you are doing, i would stick to the latest TLS(Currently 17). But if you are trying to make an app that expects people to have a JRE, then probably using the 8 TLS would be a better option and easier for users to deal with (Unless you are targeting programmers or linux users, then again, latest TLS would be imo best option).

path: 0 581321, hotness: undefined, score: 2, children: 0
wakingrufus 1 point 3 years ago

I like temurin, but for docker base images, I use Corretto as Amazon is much better about keeping it patched than the standard Temurin base image.

path: 0 1180277, hotness: undefined, score: 1, children: 0
austin 1 point 3 years ago

basically anything besides Alibaba or Oracle you probably won’t notice a difference. at work I use corretto since we deploy on aws, at home I either use Temurin or Corretto. One thing benefit of Corretto is they do tend to backport some patches to older versions if you aren’t able to use the latest yet. https://whichjdk.com/

path: 0 358493, hotness: undefined, score: 1, children: 0
JackbyDev 1 point 3 years ago

There was another JDK, I think Azul but I might be totally wrong, that had a unique feature (in the non open version I believe, sadly) where garbage collection (or some other event) only stopped individual threads instead of all of them at once.

path: 0 384517, hotness: undefined, score: 1, children: 0
java
java

@programming.dev

login for more options
2059
259
34

For discussing Java, the JVM, languages that run on the JVM, and other related technologies.

go to feed...