java.io.IOException: Cannot run program "C:\Program Files (x86)\Java\jre7\bin\javaw.exe" (in directory "C:\Users\nathan\AppData\Roaming\.minecraft"): CreateProcess error=2, The system cannot find the file specified

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

,
Expert tip

This is a bug in some versions of the Arduino IDE. Try updating to the version 1.6.12 or further.

,

Provide a working directory instead of pointing it to a file or an empty directory in process builder.

Solutions on the web

via Arqade by shadowspawn
, 1 year ago
Cannot run program "C:\Program Files (x86)\Java\jre7\bin\javaw.exe" (in directory "C:\Users\nathan\AppData\Roaming\.minecraft"): CreateProcess error=2, The system cannot find the file specified
via stackexchange.com by Unknown author, 1 year ago
Cannot run program "C:\Program Files (x86)\Java\jre7\bin\javaw.exe" (in directory "C:\Users\nathan\AppData\Roaming\.minecraft"): CreateProcess error=2, The system cannot find the file specified
via Arqade by blackpanther57k
, 1 year ago
Cannot run program "C:\Program Files\Java\jre7\bin\javaw.exe" (in directory "C:\Users\Sarina\AppData\Roaming\.minecraft"): CreateProcess error=2, The system cannot find the file specified
via stackexchange.com by Unknown author, 1 year ago
Cannot run program "C:\Program Files\Java\jre7\bin\javaw.exe" (in directory "C:\Users\Sarina\AppData\Roaming\.minecraft"): CreateProcess error=2, The system cannot find the file specified
via microsoft.com by Unknown author, 2 years ago
Cannot run program "C:\Program Files (x86)\Java\jre7\bin\javaw.exe" (in directory "C:\Users\Shirley\AppData\Roaming\.minecraft"): CreateProcess error=2, The system cannot find the file specified
via mojang.com by Unknown author, 2 years ago
Cannot run program "C:\Program Files\Java\jre8\bin\javaw.exe" (in directory "C:\Users\Jarad\AppData\Roaming\.minecraft"): CreateProcess error=2, The system cannot find the file specified
java.io.IOException: CreateProcess error=2, The system cannot find the file specified
at java.lang.ProcessImpl.create(Native Method)
at java.lang.ProcessImpl.(Unknown Source)
at java.lang.ProcessImpl.start(Unknown Source)
at java.lang.ProcessBuilder.start(Unknown Source)
at com.mojang.launcher.game.process.direct.DirectGameProcessFactory.startGame(DirectGameProcessFactory.java:14)
at net.minecraft.launcher.game.MinecraftGameRunner.launchGame(MinecraftGameRunner.java:208)
at com.mojang.launcher.game.runner.AbstractGameRunner.onDownloadJobFinished(AbstractGameRunner.java:186)
at com.mojang.launcher.updater.download.DownloadJob.popAndDownload(DownloadJob.java:122)
at com.mojang.launcher.updater.download.DownloadJob.access$000(DownloadJob.java:12)
at com.mojang.launcher.updater.download.DownloadJob$1.run(DownloadJob.java:86)
at java.util.concurrent.Executors$RunnableAdapter.call(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)

Users with the same issue

Once, 1 month ago
Once, 3 months ago
3 times, 6 months ago
Once, 1 year ago
5 times, 1 year ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.