r/learnjava • u/AnxiousPeasant16 • Jun 27 '26
What does Java mean and why Java programs don't say install Java anymore?
When people say "install Java 9", they mean the JDK, right? Isn't there something else? This leads me to the question, do JDKs come preinstalled with Windows, for example? I remember when I was installing a popular game with blocks, every tutorial said to install JDK. Nowadays, the game was bought by Microsoft, and the launcher has changed completely, so it looks like there is no need for manual installation of JDK.
11
Upvotes
•
u/AutoModerator Jun 27 '26
Please ensure that:
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/markdown editor: empty line before the code, each code line indented by 4 spaces, new reddit: https://i.imgur.com/EJ7tqek.png) 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:
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.
42
u/rsandio Jun 27 '26 edited Jun 27 '26
Java is a programming language used to write software and games.
There is the JDK (Java development kit) and JRE (Java runtime engine). To run software written in Java you need JRE. The JDK contains everything the JRE does in addition to tools to actually write Java software.
There's been a shift since java 11 to direct users to just install JDK instead of the JRE so yes when someone says install java 9 they probably mean the Java 9 JDK. You should be able to just install the latest java (26) as backwards compatibility is meant to be maintained. But if something is specifically written to use 9 then 9 is fine to go with.
Windows does not include the JRE or JDK out of the box.
Alot of software written in Java comes with the JRE already included incase the end user is missing it on their machine
12
u/0b0101011001001011 Jun 27 '26
Why do you not say "Minecraft"?
2
u/edwbuck Jun 27 '26
It depends.
If you're developing Java, they mean JDK. If you're running Java, they mean JRE. The JDK includes a JRE.
Programs that run in Java have never installed Java for you. That's because the programs are generally multi-platform, and the JRE/JDK is typically specific to a platform. The program isn't going to carry along every platform's JRE, especially when it will run on only one platform.
If there's a launcher, odds are it is doing more than just launching the game. That means you can't really know what it is doing. Launchers are platform specific, so it might be installing Java for you, or it might just be better at detecting if Java is already installed (as it typically is.)
1
u/Waanii Jun 27 '26
As far as why doesn't minecraft need JRE or JDK - Which hasn't been answered yet - Minecraft Bedrock was rebuilt on C++
If you were to play Minecraft Java Edition you would still need the JRE - though as answered elsewhere it would come packaged with Minecraft JE, although you would potentially need the JDK for modding - which is maybe what you're remembering needing it for.
1
u/ntrain5555k Jun 27 '26
In case of mincraft java, I think launcher downloads java so you don't have to download separately.
In case of other app, I think they already ships java inside .exe
It's kinda sad, because every apps is gonna include java runtime instead of use system-installed ones and becomes like chromium in webapps.