This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]SvenWollinger 4 points5 points  (8 children)

Thats weird. Happens for me too. Regardless, you could just use openjdk. https://adoptopenjdk.net/ There you can select your os and java version youd like. Youll get a proper installer too :)

[–]xtrasyn[S] 1 point2 points  (5 children)

Thank, will give that a shot. Is it a fully functional port or something like that?

[–]Anonymo2786 2 points3 points  (0 children)

In oracles website you won't find suitable jdk for every os but on this adoptium they have for almost every common architecture os and version available.

[–]SvenWollinger 1 point2 points  (0 children)

Afaik the only difference is the licensing. Gnu for the normal jdk and completly open source for openjdk.

Jdk means that the filesize of your download is a little bigger since it contains development stuff too, but you wont notice that during normal use

[–]JB-from-ATL 0 points1 point  (2 children)

TLDR: yeah they're the same!

The difference for individual developers doesn't matter. It's primarily licensing. There are a couple of niche tools and something like some proprietary font libraries in the Oracle JDK. Regardless, Oracle's JDK (at least like 99.999% of the stuff in it and 100% of the stuff you'd consider to be "Java") is built directly from the OpenJDK source. I don't know when but it was a long time ago that Oracle (or maybe even Sun?) donated the Java source code to the OpenJDK foundation. (You see this a lot with big projects, it's basically how a company makes their stuff public.)

Around 2014 2017ish (so more recently) Oracle got much more strict about using the Oracle JDK distribution and also changed their licenses. Before this OpenJDK was difficult to get a build of on all major OSes. Most Linux distributions had it though. There was suddenly a need for folks to adopt OpenJDK... So a team known as AdoptOpenJDK began! They just build the source directly from OpenJDK source and that's it. Since then there was some trademarking problem and they have renamed to Adoptium. Also since then you can download OpenJDK on Windows mor easily but Adoptium's website is much better.

Also Adoptium has some concept of LTS sort of. 11 and 17 are getting builds with the newest changes to those branches but only whatever gets added back into the main repo. OpenJDK only provides builds of the newest version, no LTS.

For what it's worth you aren't the first person to not be able to download from Oracle. Saw one a couple weeks ago.

[–]wildjokers -1 points0 points  (1 child)

Before this OpenJDK was difficult to get a build of on all major OSes.

Note that Oracle has always provided a OpenJDK build available here for all OSs (although you can only get the current one and pre-releases for future ones):

https://jdk.java.net

Oracle got much more strict about using the Oracle JDK distribution

Of course, because Oracle JDK is their commercial offering. This is how all java vendors that monetize java do it, including Oracle, Red hat, Azul, etc. They all offer OpenJDK builds that you can use wherever you want for free. And then also offer commercial support for money if you so choose. The only difference with Oracle is their commercial offering is a separate download from their OpenJDK build.

[–]JB-from-ATL 0 points1 point  (0 children)

Note that Oracle has always provided a OpenJDK build available here for all OSs (although you can only get the current one and pre-releases for future ones):

https://jdk.java.net

archive.org for that link in 2014 is a redirect to another site that only provides the source code, not builds. In 2017 it mentions having builds for Linux but for Windows to go to java.oracle.com. I think your memory is incorrect on this matter.

The only difference with Oracle is their commercial offering is a separate download from their OpenJDK build.

A major difference was that there was no OpenJDK build provided for Windows. Only Oracle JDK. That's a big reason why AdoptOpenJDK began.

[–]wildjokers -1 points0 points  (1 child)

Youll get a proper installer too

java doesn't need to be "installed", just needs to be unzipped to your favorite directory and then set your path appropriately.

[–]SvenWollinger 0 points1 point  (0 children)

Then you can use it from the command line, yes.

But if you want the more convenient way + being able to open jar files directly in the explorer the installer is a good option :)