How to fix unable to locate java runtime.
So I wanted to make this post because I had this very problem, all of the tutorials on YouTube are outdated and don't work. I will give an updated guide on how to fix it.
1. Go to your search browser, search up "java 21 download" then install it. -(must be java 21)
2. Open the java launcher then install java.
3. Open the MINECRAFT launcher, navigate to installations, you will probably have something called "latest release." Hover your mouse over it then press the 3 dots, then press edit
4. Press more options, then navigate to where it says "java executable," press browse and navigate to your java folder. It will normally be in program files.
5. Click the java folder then press the folder that will say something like "jdk-21," then press the item called bin. Then find the item called "java" with nothing else on the end. Double click it then press save.
That is how I managed to fix my Minecraft because it took me a couple weeks to figure out. I hope this helps
1. Go to your search browser, search up "java 21 download" then install it. -(must be java 21)
2. Open the java launcher then install java.
3. Open the MINECRAFT launcher, navigate to installations, you will probably have something called "latest release." Hover your mouse over it then press the 3 dots, then press edit
4. Press more options, then navigate to where it says "java executable," press browse and navigate to your java folder. It will normally be in program files.
5. Click the java folder then press the folder that will say something like "jdk-21," then press the item called bin. Then find the item called "java" with nothing else on the end. Double click it then press save.
That is how I managed to fix my Minecraft because it took me a couple weeks to figure out. I hope this helps
Commentaires
* Downvote this comment if this post is poor quality or does not fit the purpose of r/Minecraft
* Downvote this comment *and report the post* if it breaks the [rules](https://www.reddit.com/r/Minecraft/wiki/rules)
----
(*Vote has already ended*)
click java select java installation box, now see java instalation?
click open java downloader and download the latest version it shows usually you pick mojang unless for some reason you want other java.
now click detect and select the java you just downloaded.
now simply click launch settings save so you dont need to do anything else for this one specific instance and all other instance have their own settings so you can play java8 instance and java 21 instance without conflict on global settings.
You should not need to install JRE at all.