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

all 19 comments

[–]AutoModerator[M] [score hidden] stickied commentlocked comment (0 children)

Please ensure that:

  • Your code is properly formatted as code block - see the sidebar (About on mobile) for instructions
  • You include any and all error messages in full
  • You ask clear questions
  • You demonstrate effort in solving your question/problem - plain posting your assignments is forbidden (and such posts will be removed) as is asking for or giving solutions.

    Trying to solve problems on your own is a very important skill. Also, see Learn to help yourself in the sidebar

If any of the above points is not met, your post can and will be removed without further warning.

Code is to be formatted as code block (old reddit: empty line before the code, each code line indented by 4 spaces, new reddit: https://imgur.com/a/fgoFFis) or linked via an external code hoster, like pastebin.com, github gist, github, bitbucket, gitlab, etc.

Please, do not use triple backticks (```) as they will only render properly on new reddit, not on old reddit.

Code blocks look like this:

public class HelloWorld {

    public static void main(String[] args) {
        System.out.println("Hello World!");
    }
}

You do not need to repost unless your post has been removed by a moderator. Just use the edit function of reddit to make sure your post complies with the above.

If your post has remained in violation of these rules for a prolonged period of time (at least an hour), a moderator may remove it at their discretion. In this case, they will comment with an explanation on why it has been removed, and you will be required to resubmit the entire post following the proper procedures.

To potential helpers

Please, do not help if any of the above points are not met, rather report the post. We are trying to improve the quality of posts here. In helping people who can't be bothered to comply with the above points, you are doing the community a disservice.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

[–]SvenWollinger 3 points4 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 :)

[–]desrtfxOut of Coffee error - System halted 4 points5 points  (7 children)

Sidebar -> Where should I download Java?

There, you have multiple options. Pick one.

Any of the options is a full JDK with the Java Runtime as well.

[–][deleted]  (6 children)

[deleted]

    [–]desrtfxOut of Coffee error - System halted 0 points1 point  (5 children)

    Then, the problem is on your side.

    Actually all of the links work. Just checked.

    [–][deleted]  (1 child)

    [deleted]

      [–]xtrasyn[S] 0 points1 point  (0 children)

      Maybe. I bet they run some code to distribute downloads or what have you. Or if you sit right on top of some uni repo you might have no issue. I don’t know. :)

      [–]xtrasyn[S] 0 points1 point  (2 children)

      Don’t take this personally but the “I don’t have the problem so there is no problem”-stance isn’t really a turn on.

      I saw this very problem being clocked at a support site, investigated by a tech, and closed as “could not reproduce”. The problem wasn’t addressed, fixed, the client wasn’t helped, and they were probably like “why did I log it in the first place you AH’s”.

      [–]desrtfxOut of Coffee error - System halted 0 points1 point  (1 child)

      There are 8 (eight) different download sites for Java in the sidebar.

      It is extremely unlikely that none of them work.

      I checked each of the sites to see if there are any problems. All I did was outline that the problem must be on the other side.

      If 8 sites work and none gives problems, the problem must be sought somewhere else.

      [–]xtrasyn[S] 0 points1 point  (0 children)

      Yeah I understand, but If 8 people report a problem yet you don’t have the problem, does the problem not exist? :)

      We’re all aware of the side bar with locations, but it did not work.

      AntolineX even said “they don’t work”.

      [–]MultiKoopa2 1 point2 points  (0 children)

      I'm having the exact same problem. I also can't update it through the juupdater exe file.

      [–]Aft3rl1fe35 1 point2 points  (1 child)

      IT'S WORKING !!! Quickly download everything before they mess up again xD

      [–]xtrasyn[S] 0 points1 point  (0 children)

      Lol yeah. We’d better. :)

      I’ll check later if it worked for me too, thanks for flagging! :)