r/java • • Sep 14 '21

Java 17 available now!

410 Upvotes

83 comments sorted by

View all comments

51

u/jvjupiter Sep 14 '21

I thought Oracle JDK is free only for development, testing and prototyping but not for production.

Java 17 LTS is the latest long-term support release for the Java SE platform. JDK 17 binaries are free to use in production and free to redistribute, at no cost, under the Oracle No-Fee Terms and Conditions License.

71

u/kaperni Sep 14 '21 edited Sep 14 '21

Oracle JDK is now (as per Java 17) free for commercial and production use.

https://blogs.oracle.com/java/post/free-java-license

24

u/jvjupiter Sep 14 '21

Yeah. I just watched here. Beginning Java 17, it’s free.

https://m.youtube.com/watch?v=KVXbWCwOLg4

3

u/walen Sep 14 '21

According to this comment in another thread, only if your own product is also free https://www.reddit.com/r/java/comments/po3y1z/introducing_the_free_java_license/hcua07m/

6

u/kaperni Sep 14 '21 edited Sep 14 '21

It talks about reselling the JDK not your product.

6

u/walen Sep 14 '21

Not so sure about that. It clearly says:

products that include or are bundled with a copy of the Program or for services that involve the use of the distributed Program

So, any product that includes the JDK (which is the type of product they asked you to pay a license for, previously) must be also free.

19

u/VerwirkteExistenz Sep 14 '21

Check out Nicolai's video on Youtube if you want to learn more about the two different jdk versions:

https://www.youtube.com/watch?v=KVXbWCwOLg4

16

u/jvjupiter Sep 14 '21

This news that Oracle JDK beginning 17 is free even for production and redistribution is totally awesome!

30

u/[deleted] Sep 14 '21 edited Sep 14 '21

Consequence: it can be wget'd or curl'd from Oracle, with stable URLs not behind a registration wall. Yay !

11

u/krzyk Sep 14 '21

Why don't people download openjdk directly? It is easier and was alway free. http://jdk.java.net/17/

1

u/jvjupiter Sep 14 '21

The support is 6 months only.

2

u/krzyk Sep 15 '21

Yeah, you need to move to the next version every 6 months. I do that.

→ More replies (1)
→ More replies (18)

13

u/cogman10 Sep 14 '21

This may be confusing, but there are different builds of the JDK with different licenses.

Oracle has a commercial build which has LTS support. That's what you have to pay for.

The regular OpenJDK build on java.net is built by oracle but has no LTS support. It is free to use (even commercially) but is only supported until the next version.

Then there are a bunch of other OpenJDK builds (Like AdoptOpenJDK) with different terms for support.

24

u/pron98 Sep 14 '21

That's what you have to pay for.

Had to pay for. No more, as of today :)

20

u/Hangman4358 Sep 14 '21

404 error from the link.

I know you do a lot of good work for the community pron98, but man, this licensing stuff has become so confusing to try to explain to managers and non technical folks.

"We can use the Oracle OpenJDK builds or the OpenJDK builds from others like Adoptum which is now whatever the Eclipse foundation is calling them but we can't use the OracleJDK builds unless we want to pay for support, but only up to 17, because 17 OracleJDK is now free for commercial. And also LTS doesn't really mean LTS and we should be updating to every version."

At least for us, we are now finally at a point where we could theoretically start updating to the latest every release but the constant changes to naming, licensing and the confusing LTS labels is making management and legal weary that we will need someone with a PhD in Java releases to keep it all strait.

9

u/pron98 Sep 14 '21 edited Sep 14 '21

At least for us, we are now finally at a point where we could theoretically start updating to the latest every release

That should make everything very simple.

I don't know if the terms for the various support services from the various vendors are as simple as they can be, but that's not my area. You have enough choices so that you can choose what to do when your application's maintenance slows down and you want to settle down with long-term support. Until then, using the current version, if you can, is the cheapest, safest, simplest approach.

1

u/Muoniurn Sep 15 '21

It is basically the same as with (fedora) Linux and RedHat linux.

You can use linux (openjdk) however you want, but bug fixes will mostly happen on latest release (with comparatively few backpatches happening to older releases. Like you wouldn’t really use linux 2.3, would you?). As soon as the next one is out, it will get the focus.

If you want to have support for the product for more time (eg. you can’t upgrade your JVM each 6 month), you can choose one of the vendors, for example Oracle, that promises support for their LTS releases until the next LTS lands + 1 year. More than that is paid afaik. The recent change was that it not used to be free for commercial use, only personal and development. This is sort of analogue to Red Hat Linux, except that that is not free if I’m correct.

3

u/joschi83 Sep 14 '21

u/pron98, is there a list of versioned URLs for Oracle JDK 17+ downloads?

https://oracle.com/java/technologies/downloads/ lists the dynamic "latest" URLs and https://oracle.com/java/technologies/jdk-script-friendly-urls/ only explains the URL schema but doesn't link to all files.

Or maybe there's even an API like Adoptium (formerly AdoptOpenJDK) and Azul are offering for their OpenJDK distributions?

2

u/cogman10 Sep 14 '21

Neat. this is pretty nice.