mojira.dev
MCL-5638

Unable to locate the Java runtime

Moderator Note

There are essentially three seperate issues combined in this ticket number:

1. A general problem with symlinks and junctions. Please see this comment for details on how to fix this temporarily.

2. A bug that causes issues with detection of the Java runtime. To fix this issue manually, you need to delete the "runtime" folder in the following folder: "C:\Program Files (x86)\Minecraft\".

3. Make sure the Java Executable setting on any launcher profiles you have set up in the Launch Options menu is set to off

[media]

The new launcher (2.0.74) cannot launch minecraft because it cannot find the executable.

What I expected to happen was...:
The game launches just like ALL previous versions of the launcher

What actually happened was...:
Error details: The system cannot find the file specified
Filename on disk: javaw.exe
Path: C:\ProgramData\Oracle\Java\javapath\javaw.exe
Exists: file

Steps to Reproduce:
Start Launcher
Click Play

I've also RESET the profile BACK to specifying the actual path to the exe because for some stupid reason the new crap launcher changed the settings on ALL my profiles. The launcher is crap. It even crashed and Windows had to close it.

Linked issues

MC-113885 I can't log into minecraft. It's telling me unable to locate Java runtime. I tried to fix this and I can't do it. Please someone tell me how I could fix this. Thank you. Resolved MC-116840 Cannot play latest snapshot Resolved MC-120553 Un-installed then Re-installed MC Resolved MC-121341 Unable to locate the Java runtime. Resolved MC-121667 Unable to locate the Java runtime. Resolved

Attachments

Comments 31

I have discovered that the launcher ignores any path to javaw.exe that I place in the profile.
I also had to specify the path to the game directory, that was lost with the new launcher.
I also had to specify they java options, that was lost with the new launcher.

Same thing with v2.0.806 - Still cannot play Minecraft.

Just got the new launcher.. and now I can't play Minecraft. It says that the Java runtime cannot be located even though the path it's pointing to clearly exists.

http://imgur.com/a/b8qwN

Is this going to be fixed anytime this year? I haven't been able to play minecraft since the new launcher came out. Do I have to demand my money back for the game I can no longer play?

21 more comments

This should be partially fixed in the next release:

  • When people only enable the setting and do not change the Java path, it will revert back to being disabled (using default value)

  • When it cannot find the Java executable, the error dialog now has a button that resets the path to default (being disabled)

I'll have to look into the rest of the issues here...

So why can't we have resolved it as using one of these?

@peterix: Can this issue be closed? I think the remaining issues are all solvable by tech support.

Is there an update to resolving this issue with the 2.1.15850 launcher? I'm not sure if I should submit a new issue since this ticket is closed, but it is the same exact message that I'm getting. I have deleted the program file like the old fix says to. I cannot figure out how to make sure java is executable, though. I went to the launcher settings and could find no way to check how the game is trying to launch or anything.

Please read the moderator note for possible solutions - if they do not help, Please check the Technical Support Resources, or the Community Support Discord - please note that technical support for Minecraft is done by volunteers, so please be patient if you do not receive an answer right away.

migrated

(Unassigned)

Unconfirmed

trello

Retrieved