So today i tried to allocate more ram to Minecraft and i got the Cant create a java virtuale machine error. So i looked it up and most people were suggesting to download Java 64 Bit. (Yes i have an 64 bit operating system) But now when i try to run minecraft i get this error:
java.io.IOException: Cannot run program "C:\Program Files (x86)\Java\jre7\bin\javaw.exe" (in directory "C:\Users\Johannes\AppData\Roaming\.minecraft"): CreateProcess error=2, The system can not find the specified file
at java.lang.ProcessBuilder.start(Unknown Source) ~[?:1.7.0_45]
at net.minecraft.launcher.process.JavaProcessLauncher.start(JavaProcessLauncher.java:25) ~[launcher.jar:?]
at net.minecraft.launcher.GameLauncher.launchGame(GameLauncher.java:292) [launcher.jar:?]
at net.minecraft.launcher.GameLauncher.onDownloadJobFinished(GameLauncher.java:524) [launcher.jar:?]
at net.minecraft.launcher.updater.download.DownloadJob.popAndDownload(DownloadJob.java:119) [launcher.jar:?]
at net.minecraft.launcher.updater.download.DownloadJob.access$000(DownloadJob.java:12) [launcher.jar:?]
at net.minecraft.launcher.updater.download.DownloadJob$1.run(DownloadJob.java:89) [launcher.jar:?]
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) [?:1.7.0_45]
at java.util.concurrent.FutureTask.run(Unknown Source) [?:1.7.0_45]
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [?:1.7.0_45]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [?:1.7.0_45]
at java.lang.Thread.run(Unknown Source) [?:1.7.0_45]
Caused by: java.io.IOException: CreateProcess error=2, The system can not find the specified file
at java.lang.ProcessImpl.create(Native Method) ~[?:1.7.0_45]
at java.lang.ProcessImpl.<init>(Unknown Source) ~[?:1.7.0_45]
at java.lang.ProcessImpl.start(Unknown Source) ~[?:1.7.0_45]
... 12 more
[11:17:35 INFO]: Deleting C:\Users\Johannes\AppData\Roaming\.minecraft\versions\1.7.2\1.7.2-natives-3360685336361
Run the launcher, select the profile in question, hit the "Edit Profile" button. At the bottom of the next dialog is a section called "Java Settings (Advanced)" click the "Executable" box if not already checked and edit the path to be correct, which probably is: "C:\Program Files\Java\jre7\bin\javaw.exe" (no " (x86)" )
Run the launcher, select the profile in question, hit the "Edit Profile" button. At the bottom of the next dialog is a section called "Java Settings (Advanced)" click the "Executable" box if not already checked and edit the path to be correct, which probably is: "C:\Program Files\Java\jre7\bin\javaw.exe" (no " (x86)" )
This is actually a bug of sorts. With the old launcher the path to Java would have been determined each time you ran it. Now it appears that the launcher captures the path to Java when you create the profile and never updates that even if you have not chosen to override the default. The launcher could handle this better. Either not "freeze" the path until the user has overridden the default, or at least re-evaluate the path if it no longer points to a valid executable.
Note that you probably need to update all of your existing profiles.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
But now when i try to run minecraft i get this error:
java.io.IOException: Cannot run program "C:\Program Files (x86)\Java\jre7\bin\javaw.exe" (in directory "C:\Users\Johannes\AppData\Roaming\.minecraft"): CreateProcess error=2, The system can not find the specified file
at java.lang.ProcessBuilder.start(Unknown Source) ~[?:1.7.0_45]
at net.minecraft.launcher.process.JavaProcessLauncher.start(JavaProcessLauncher.java:25) ~[launcher.jar:?]
at net.minecraft.launcher.GameLauncher.launchGame(GameLauncher.java:292) [launcher.jar:?]
at net.minecraft.launcher.GameLauncher.onDownloadJobFinished(GameLauncher.java:524) [launcher.jar:?]
at net.minecraft.launcher.updater.download.DownloadJob.popAndDownload(DownloadJob.java:119) [launcher.jar:?]
at net.minecraft.launcher.updater.download.DownloadJob.access$000(DownloadJob.java:12) [launcher.jar:?]
at net.minecraft.launcher.updater.download.DownloadJob$1.run(DownloadJob.java:89) [launcher.jar:?]
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) [?:1.7.0_45]
at java.util.concurrent.FutureTask.run(Unknown Source) [?:1.7.0_45]
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [?:1.7.0_45]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [?:1.7.0_45]
at java.lang.Thread.run(Unknown Source) [?:1.7.0_45]
Caused by: java.io.IOException: CreateProcess error=2, The system can not find the specified file
at java.lang.ProcessImpl.create(Native Method) ~[?:1.7.0_45]
at java.lang.ProcessImpl.<init>(Unknown Source) ~[?:1.7.0_45]
at java.lang.ProcessImpl.start(Unknown Source) ~[?:1.7.0_45]
... 12 more
[11:17:35 INFO]: Deleting C:\Users\Johannes\AppData\Roaming\.minecraft\versions\1.7.2\1.7.2-natives-3360685336361
Please Help ;(
-
View User Profile
-
View Posts
-
Send Message
Curse PremiumIf you uninstalled it you might need to edit your profile to point at the 64bit Java that you (presumably) replaced it with.
Note that you probably need to update all of your existing profiles.