When you create a profile that specifies a game directory that does not exist the following IOException is thrown when trying to start a game:
java.io.IOException: Cannot run program "C:\Program Files\Java\jre7\bin\javaw.exe" (in directory "C:\Games (x86)\Minecraft\Dev"): CreateProcess error=267, The directory name is invalid
at java.lang.ProcessBuilder.start(Unknown Source)
at net.minecraft.launcher.process.JavaProcessLauncher.start(JavaProcessLauncher.java:25)
at net.minecraft.launcher.GameLauncher.launchGame(GameLauncher.java:218)
at net.minecraft.launcher.GameLauncher.onDownloadJobFinished(GameLauncher.java:394)
at net.minecraft.launcher.updater.download.DownloadJob.popAndDownload(DownloadJob.java:95)
at net.minecraft.launcher.updater.download.DownloadJob.access$000(DownloadJob.java:10)
at net.minecraft.launcher.updater.download.DownloadJob$1.run(DownloadJob.java:65)
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.io.IOException: CreateProcess error=267, The directory name is invalid
at java.lang.ProcessImpl.create(Native Method)
at java.lang.ProcessImpl.<init>(Unknown Source)
at java.lang.ProcessImpl.start(Unknown Source)
... 13 more
Linked issues
Attachments
Comments 3
You seem to have misunderstood me. I inspected said directory (after I created it and specified it as Game Directory) and there are no game files in it. Only the saves and setting for that profile. When the profile information (like saves, etc.) don't exist, they are created by the game. In the same manner I would expect the launcher to ask the player if the directory should be created if it does not exist.
As such it is not a bug per se but an inconvenience which may leave some people baffled.
I will attach a screenshot of my directory to this issue so you can see what I mean if I didn't express myself in an understandable manner.
Duplicate of MCL-415.
Uhm, what do you expect ? The launcher cannot find the game files, what else should it do than throwing an error message ?