More Info: How to Fix the Could Not Create the Java Virtual Machine Error
Need Help? Click here for more information on How to Fix the Could Not Create the Java Virtual Machine Error.
Need Help? Click here for more information on How to Fix the Could Not Create the Java Virtual Machine Error.
ERROR: Could not create the Java virtual machine. A fatal exception has occurred.
I fixed that by installing Java Runtime Environment 6u43.
But now I still get the problem which says: Could not create the Java virtual machine.
Do nay of you know a fix to this? I deleted all my minecraft files and reinstalled them, I even restarted my PC a couple of times, and even reinstalled Java many times.
It still doesn't work? Do any of you know the cause to my problem? And how to fix it?
System: Microsoft Windows XP, Home Edition, Version 2002, Service Pack 3.
Genuine Intel® CPU
T2400 @ 1.83 GHz
1.83 GHz, 2.50 GB of RAM.
I used the Magic Launcher and it gave this crash report:
*** MagicMinecraftLauncher 1.0.0 ***
java.lang.ClassNotFoundException: net.minecraft.client.Minecraft
at java.net.URLClassLoader$1.run(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at magic.launcher.Launcher.main(Unknown Source)
I am currently using Java 7 Update 21.
You don't have the right minecraft.jar there's one for the game and one for the launcher. They are NOT the same.
to make a batch file, create a new text document on your desktop, then copy and paste this in it:
@echo off
cd C:\Minecraft
java -Xmx1024M -Xms1024M -cp Minecraft.exe net.minecraft.LauncherFrame
(if you want to start it with a different a different amount of ram change the two numbers
"-Xmx1024M -Xms1024M" to whatever you want to start it with.)
and then save in all files, and write the name you want it to be and add .bat at the end.
(if you are using the .jar launcher just change the .exe extension in the batch file to .jar)
this will not fix the new launcher though and i cant seem to figure out how to fix the new one :/
Then the normal error comes.
Here's what MultiMC gave me as a crash report.
------------- MultiMC Crash Report -------------
Information:
Date: 05-04-2013 15:07:38
Operating System: Windows XP (build 2600, Service Pack 3)
MultiMC Version: 4.3.0 jenkins-MultiMC4Windows-76
Minecraft Version: 1.5.1
------------------ Mod Lists -------------------
----------------- Console Log ------------------
Instance folder is:
C:\Documents and Settings\Desktop\MultiMC\instances\minecraft\minecraft\
Instance started with command:
"C:\Program Files\Java\jre7\bin\java.exe" -Xms512m -Xmx1024m -jar MultiMCLauncher.jar "" "" "MultiMC: minecraft" "854x480" "Mojang"
Error occurred during initialization of VM
Could not reserve enough space for object heap
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
Minecraft exited with code 1.
Minecraft has crashed!
My Steam Name is cyndasaur,not the one from uk.
this error is due to you not having the batch file in the same directory as the launcher i believe, otherwise, i don't know what the problem could be.
Alright I downgraded to Java 6 now it only says could not create Java virtual machine.
MultiMC crash report:
------------- MultiMC Crash Report -------------
Information:
Date: 05-04-2013 21:14:53
Operating System: Windows XP (build 2600, Service Pack 3)
MultiMC Version: 4.3.0 jenkins-MultiMC4Windows-76
Minecraft Version: 1.5.1
------------------ Mod Lists -------------------
----------------- Console Log ------------------
Instance folder is:
C:\Documents and Settings\Desktop\MultiMC\instances\minecraft\minecraft\
Instance started with command:
"C:\Program Files\Java\jre6\bin\java.exe" -Xms512m -Xmx1024m -jar MultiMCLauncher.jar "" "" "MultiMC: minecraft" "854x480" "Mojang"
Error occurred during initialization of VM
Could not reserve enough space for object heap
Could not create the Java virtual machine.
Minecraft exited with code 1.
Minecraft has crashed!
Btw I also tried using the .bat file but it didnt work. It gave me the virtual machine error and stopped working.
I had the launcher on the desktop and the .bat file as well, still doesn't work. :/
the only other possible solution i can think of is lowering the ram you start minecraft with... other than that, i've got nothing lol
Try reducing the -Xmx1024m to say -Xmx800m. If that works, then .. check if you have installed/running a freebie browser extension called BrowerProtect. If so, remove it (which may be hard as various trojans hide inside versions of this and are hard to remove). Otherwise, can't help you, sorry.
See http://www.minecraftforum.net/topic/1462722-error-could-not-create-the-java-virtual-machine/page__st__80#entry22555964