News for hackers. Stuff that matters.
Re:Java 25 Officially Released by samus on Tuesday September 16, 2025 @03:05PM (#45266455)
Just use OpenJDK (only downside is you have to upgrade every half year) or a distribution of another vendor (most people use Eclipse, or Red Hat if they already are Red Hats customers). It's really not as difficult as it is made out to be.

If you use Oracle's distribution of the JDK then you are an enterprise customer and should have the resources to deal with their license terms.

Re:Java 25 Officially Released by Foomf on Tuesday September 16, 2025 @03:30PM (#45266819)
"Am I using the correct language runtime distribution (or version thereof) so I don't get into legal trouble?" Is a question none of Java's competitors have to ask.

Even using OpenJDK is a sword of damocles waiting to fall. If I forget to update OpenJDK, Oracle could come after me. It's just risk that I don't have to worry about by choosing not to go with Java. It's probably not a lot of risk, but it's risk nonetheless that doesn't exist with Java's competitors.

Competition is so fierce in the language space and there are so many good options that java can't afford to have any friction points like this.

EDIT: I got oracle openjdk and oracle jdk mixed up. They're different things. It looks like the oracle openjdk does not have its license change, the oracle jdk does. This is a problem/risk I don't have to worry about with any other language, but getting the two mixed up is on me.

Re:Java 25 Officially Released by cbm-vic-20 on Tuesday September 16, 2025 @03:56PM (#45267164)
> If I forget to update OpenJDK, Oracle could come after me

I must have missed that section of the GPLv2.

Oracle does distribute a different (not OpenJDK) Java distribution under a special not-open-source no-cost license, which includes a stipulation that you can't use updates after the next LTS release. This only adds to the confusion: you really only need Oracle's special distribution if you want paid Oracle support for it or their stuff that requires it.

Re:Java 25 Officially Released by munksbeer on Tuesday September 16, 2025 @03:38PM (#45266916)
>Even using OpenJDK is a sword of damocles waiting to fall.

No, it really isn't. Honestly, people seem to go to great lengths of talking nonsense to discredit Java. There are many reasons to not like a language, and that is absolutely fine. But there is no point talking nonsense about it when you could just... not use it.

Re:Java 25 Officially Released by Foomf on Tuesday September 16, 2025 @03:58PM (#45267187)
I was under the impression that openjdk changes licenses once a new version comes out. That's why the parent comment said "the only downside to openjdk is you have to upgrade every half year", right?
Re:Java 25 Officially Released by monkeyelite on Tuesday September 16, 2025 @09:31PM (#45270515)
I don’t think someone can revoke your gpl licensed software you already have.
Re:Java 25 Officially Released by voxic11 on Tuesday September 16, 2025 @09:45PM (#45270599)
Check out 17 U.S.C. §203 and §304. I think it's possible to revoke the license after 35 years (at least in the US).
Re:Java 25 Officially Released by vips7L on Tuesday September 16, 2025 @10:04PM (#45270716)
No they said that because builds of the OpenJdk codebase by the OpenJdk team are only supported for 6 months until the next version comes out.

Builds of the OpenJdk codebase by other vendors are supported for other lengths of time.

Re:Java 25 Officially Released by thevillagechief on Tuesday September 16, 2025 @04:00PM (#45267209)
This coming from a big Oracle skeptic. None of this is true. There is no practical friction left if you're using OpenJDK. And from the parent comment, you do not need to upgrade every 6 months. Most people just work with the LTS version.
Re:Java 25 Officially Released by lukev on Tuesday September 16, 2025 @03:36PM (#45266889)
> If I forget to update OpenJDK, Oracle could come after me.

What?

Re:Java 25 Officially Released by Foomf on Tuesday September 16, 2025 @04:01PM (#45267231)
Licensing for OpenJDK is non trivial. Look at the large table and various bullet points Oracle had to make to tell you the license. https://www.oracle.com/java/technologies/javase/jdk-faqs.htm... (open the first dropdown on their FAQ page to open up their "licensing matrix")

This is a mess, and is the license going to change again while I'm locked in the java ecosystem?

Edit: It looks like the openjdk is consistently under the gplv2, I don't know why it has so many different entries in their table. I think I probably got opendjk and oracle jdk mixed up. I think the person I was replying to who said openjdk needs to be updated every half year got confused as well. It's so hard to even talk about all the different jdks without getting them mixed up or confused. Again, no other java competitors have this problem.

Re:Java 25 Officially Released by cbm-vic-20 on Tuesday September 16, 2025 @04:14PM (#45267384)
Licensing for OpenJDK is trivial (GPLv2+Classpath). Just like gcc/g++ and its runtime library exception.

Licensing for Oracle JDK is more complicated. This is the one where you can use it for free, but after the next LTS you either have to move to the LTS or pay for updates. There's no reason to use Oracle JDK unless you want to pay for support from Oracle, or if your applications specifically require Oracle JDK. Oracle JDK is built from the same source as OpenJDK.

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

Re:Java 25 Officially Released by extraduder_ire on Wednesday September 17, 2025 @02:28AM (#45272444)
What is even the benefit to using Oracle JDK at this point? Years ago, I saw that some jetbrains IDEs said to use it instead of openJDK, but I haven't seen anything else like that.
Re:Java 25 Officially Released by lenkite on Wednesday September 17, 2025 @09:39AM (#45275713)
Oracle JDK offers LTS support with regular security patches and critical bug fixes, even for older LTS releases. (More than a decade plus, I believe, but need to check)

OpenJDK community builds usually only provide updates until the next release (6 months).

Oracle offers paid commercial support contracts: guaranteed patch timelines, 24/7 enterprise support, performance issue troubleshooting, and compliance assurance.

You can also built features atop the Oracle JDK and still get support. SAPJVM does this for instance - hot debugging as a feature.

Re:Java 25 Officially Released by lenkite on Wednesday September 17, 2025 @10:03AM (#45275978)
> Licensing for OpenJDK is non trivial.

?? It is very simple. Please go to the OpenJDK site and read the below:

https://openjdk.org/legal/gplv2+ce.html

Re:Java 25 Officially Released by Quekid5 on Tuesday September 16, 2025 @03:41PM (#45266954)
What, exactly, are the JVM's competitors (not Java, btw)? You can always use Kotlin or Scala if they take your fancy. They both interop fantastically with 20+ years of the Java ecosystem.

EDIT: The only remotely competitive ecosystem is JS/TS (because billions of pre-installs) and C#.

> Even using OpenJDK is a sword of damocles waiting to fall. If I forget to update OpenJDK, Oracle could come after me. It's just risk that I don't have to worry about by choosing not to go with Java. It's probably not a lot of risk, but it's risk nonetheless that doesn't exist with Java's competitors.

This is absurd hyperbole.

Re:Java 25 Officially Released by brunoborges on Tuesday September 16, 2025 @07:28PM (#45269640)
> "Am I using the correct language runtime distribution (or version thereof) so I don't get into legal trouble?" Is a question none of Java's competitors have to ask.

I am not sure this is 100% true. I think that if you download a specific binary of Anaconda (for Python), you may get into a situation where you have to pay.

For example, at Anaconda.com, one can download their distribution (their build) but the fine print says: "Use of Anaconda’s offerings at an organization of more than 200 employees/contractors requires a paid business license unless your organization is eligible for discounted or free use."

I think that PSF License is permissive and allows binary versions of Python without the maker having to release the source code.

So, downloading Anaconda as a Python distribution (build) is analogous to downloading Oracle JDK (a commercial build of OpenJDK, from Oracle).

Re:Java 25 Officially Released by mike_hearn on Wednesday September 17, 2025 @04:38AM (#45273356)
That's because none of Java's competitors have commercial support offerings to begin with, as far as I know?

It's the same situation as with Linux. Red Hat Enterprise Linux isn't free. But it'd be weird if you said you're afraid of using Linux because the licensing is too complicated.

Re:Java 25 Officially Released by lenkite on Wednesday September 17, 2025 @09:47AM (#45275797)
Lots of languages like Python, NodeJS, C++, even Perl have commercial support offerings.
Re:Java 25 Officially Released by mike_hearn on Thursday September 18, 2025 @02:57AM (#45286408)
OK but not from the creators of the languages themselves, I think?

The point remains though that it's the same situation. There's a free open source implementation and some companies that offer paid support.

Re:Java 25 Officially Released by samus on Thursday September 18, 2025 @09:18AM (#45289340)
Pretty sure you can get support from Microsoft or other vendors for their C++ compilers.
Re:Java 25 Officially Released by mike_hearn on Thursday September 18, 2025 @11:49AM (#45291156)
Microsoft aren't the creators of C++.
Re:Java 25 Officially Released by lenkite on Thursday September 18, 2025 @03:46PM (#45294113)
Dotnet has commercial support from Microsoft. They are C# inventors.

(Also to needlessly quibble, technically James Gosling under Sun Micro-systems invented Java)

Re:Java 25 Officially Released by StopDisinfo910 on Thursday September 18, 2025 @10:00AM (#45289812)
Cloud providers do if you run your program on their platforms. That’s not exactly what you want but that covers a significant part of the market.
Re:Java 25 Officially Released by lenkite on Wednesday September 17, 2025 @09:35AM (#45275660)
> "Am I using the correct language runtime distribution (or version thereof) so I don't get into legal trouble?" Is a question none of Java's competitors have to ask.

Umm..sorry, but this is just sheer nonsense. There are many commercial Python distributions like ActiveState ActivePython, Anaconda Enterprise, etc that you need to pay for.

If you download and use their prebuilt ActivePython installer without a proper license in a commercial setting, you’re breaching a contract and will get into legal trouble.

> This is a problem/risk I don't have to worry about with any other language,

No, you most certainly DO have to worry about this in many other languages which offer commercial support offerings. (Python/C++/Perl/NodeJS,etc)

> Even using OpenJDK is a sword of damocles waiting to fall.

Just a plain, bald-faced lie.

Re:Java 25 Officially Released by stronglikedan on Tuesday September 16, 2025 @03:37PM (#45266903)
All that just seems like friction when there are frictionless alternatives available. Life's too short for friction.
Re:Java 25 Officially Released by Quekid5 on Tuesday September 16, 2025 @03:44PM (#45266997)
You usually have to explictly opt-in to installing an Oracle JDK because... you know, they have a license agreement that you must agree to.

So there's no friction, everyone uses the OSS ones unless you have very specific needs.

Re:Java 25 Officially Released by lenkite on Wednesday September 17, 2025 @10:04AM (#45275994)
Can you explain what the friction is ? If you download and install the ActiveState Python distribution in a commercial setting and accept the license agreement without reading and get sued legally at a later point, will you say Python has too much friction ?

Just go to https://openjdk.org/ and click "Download". Or say `brew install openjdk` (macOS) / `apt install openjdk` (linux).

ZERO friction.

Re:Java 25 Officially Released by samus on Wednesday September 17, 2025 @11:16AM (#45276874)
There is no friction. Don't use commercial products if you don't want to pay for them. End of story.
Re:Java 25 Officially Released by signal11 on Wednesday September 17, 2025 @12:56AM (#45271836)
> only downside is you have to upgrade every half year

LTS OpenJDK distributions from eg Eclipse (17, 21 etc) stick around for longer[1]. Heck, you can still get updates for JDK 11 and even 8.

You do have to update the runtime for security and other fixes, but that’s true for other languages too.

[1] https://adoptium.net/support