mojira.dev
MCL-4053

Error: Couldn't launch game on OS X 10.11

After installing from Minecraft.dmg I ran the launcher once. It went through the download process and Minecraft upgrade completed successfully.

Minecraft launcher runs fine, at least from the command line.

When I click Play, however, the process ends with an IOException.

It appears that the launcher is looking for /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/bin/java, whereas after I installed Apple Java, the location is directly under /Library (no /System): /Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/bin/java.

Setting JAVA_HOME does not help:

$ JAVA_HOME=/Library/Java/JavaVirtualMachines/1.6.0.jdk
...
/Contents/Home /Applications/Minecraft.app/Contents/MacOS/launcher
[19:55:12 INFO]: Minecraft Launcher 1.6.44 (through bootstrap 100) started on osx...
[19:55:12 INFO]: Current time is Oct 3, 2015 7:55:12 PM
[19:55:12 INFO]: System.getProperty('os.name') == 'Mac OS X'
[19:55:12 INFO]: System.getProperty('os.version') == '10.11'
[19:55:12 INFO]: System.getProperty('os.arch') == 'x86_64'
[19:55:12 INFO]: System.getProperty('java.version') == '1.8.0_60'
[19:55:12 INFO]: System.getProperty('java.vendor') == 'Oracle Corporation'
[19:55:12 INFO]: System.getProperty('sun.arch.data.model') == '64'
...
[19:55:21 ERROR]: Couldn't launch game
java.io.IOException: Cannot run program "/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/bin/java" (in directory "/Users/diane/Library/Application Support/minecraft"): error=2, No such file or directory
	at java.lang.ProcessBuilder.start(ProcessBuilder.java:1048) ~[?:1.8.0_60]
	at com.mojang.launcher.game.process.direct.DirectGameProcessFactory.startGame(DirectGameProcessFactory.java:14) ~[launcher.jar:1.6.44]
	at net.minecraft.launcher.game.MinecraftGameRunner.launchGame(MinecraftGameRunner.java:218) [launcher.jar:1.6.44]
	at com.mojang.launcher.game.runner.AbstractGameRunner.onDownloadJobFinished(AbstractGameRunner.java:186) [launcher.jar:1.6.44]
	at com.mojang.launcher.updater.download.DownloadJob.popAndDownload(DownloadJob.java:122) [launcher.jar:1.6.44]
	at com.mojang.launcher.updater.download.DownloadJob.access$000(DownloadJob.java:12) [launcher.jar:1.6.44]
	at com.mojang.launcher.updater.download.DownloadJob$1.run(DownloadJob.java:86) [launcher.jar:1.6.44]
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_60]
	at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_60]
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [?:1.8.0_60]
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [?:1.8.0_60]
	at java.lang.Thread.run(Thread.java:745) [?:1.8.0_60]
Caused by: java.io.IOException: error=2, No such file or directory
	at java.lang.UNIXProcess.forkAndExec(Native Method) ~[?:1.8.0_60]
	at java.lang.UNIXProcess.<init>(UNIXProcess.java:248) ~[?:1.8.0_60]
	at java.lang.ProcessImpl.start(ProcessImpl.java:134) ~[?:1.8.0_60]
	at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029) ~[?:1.8.0_60]
	... 11 more
[19:55:21 INFO]: Deleting /Users/diane/Library/Application Support/minecraft/versions/1.8.8/1.8.8-natives-15001280838276

Minecraft never actually runs.

Comments 5

I have also had this issue for trying to run the game on OSX El Capitan 10.11.2. I tried re-downloading the ,dmg, updating my java, and playing on non-snapshots and still receive the same error message. I hope this issue can be quickly resolved so (at least some) Mac users can resume play.

Affects all versions; including latest snapshot, at least for me.

Issue valid for current version of Minecraft (cannot find a way to change the "affects versions:" section)

This was driving me crazy for the last 2 weeks but I finally figured out a fix that worked on my system. Open the launcher, go to "Edit Profile" and then unclick the box next to "Executable". This setting was pointing to the location of a previous version of the java runtime that has been removed, and if you unclick it then Minecraft will find the correct java and work fine.

Is this still a concern in the current Minecraft Launcher version 2.0.805 / 2.0.806? If so, please update the affected versions in order to best aid Mojang ensuring bugs are still valid in the latest releases/pre-releases. If this has been done, we can reopen the issue.

Keep in mind that the "Resolved"-Status on this ticket just means "Answered", and that we are waiting for further information on whether this issue still exists or not. It will be reopened it as soon as the requested information has been delivered.

migrated

(Unassigned)

Unconfirmed

Retrieved