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.
Trying to use the downloaded version due to the site being down. I'm using windows xp i think.
Can someone tell me how to fix, with ridiculously easy steps... also my minecraft file isn't a .jar or a .exe its just minecraft. I'll look at its properties now to see if i'm wrong.
thanks for the help.
its very possible that your machine is rather old and cant handle the game. although I couldn't tell you unless i knew the specs
I dunno, I've never had that happen to me. I just uninstalled it and re-installed it recently and it worked fine for me. But I have a much different set up so that might have a factor in it.
Derp i have java, i recently reinstalled it. jesus christ....
can someone provide help now? thanks in advance
I was getting the popup claiming "Could not create the java virtual machine" when running the .exe file (both versions from the site). So I grabbed the .jar version labeled "linux/other". Since Java is platform independent I figured it should work anyways (the exe was just a nice way for them to package things for Windows). That's how I discovered the following.
When attempting to run with the recommended maximum memory (-Xmx1024M) in the console I immediately get:
Error occurred during initialization of VM
Could not reserve enough space for object heap
Could not create the Java virtual machine.
Note that the last line matches the error we are seeing from the exe, which leads me to believe that it's attempting to set the same memory allocation and failing in this same way. From searching the web, I think I've determined that there is a maximum amount of memory that 32bit Windows (and/or 32bit Java) will allow.
I also tried running with no memory specification, and with the most I could seem to get (around 825M), and I get to the login screen. When I type in my info, I get this error on the command line instead:
That last line "about (5): null" also shows up in the game window and looks familiar from some other posts around here as well. In any case, we're running out of memory when attempting to extract (unzip) the lzma files. I don't know much about lzma, but it looks like it's a compression format from 7zip?
Their site claims it to be very efficient on memory usage when decompressing, so I can't figure out why it would need a full GB. Looking in further, the lzma unzipping library minecraft is using seems to be from 2008. There are much more recent versions from this year that presumably are better behaved? Hopefully it's a simple matter of plugging in a new version and providing a 32bit version of the exe that calls for a smaller memory maximum.
For the record:
Windows XP 32bit SP3, Java 1.6.0_21 (most recent), 3GB Ram.
GRR I wanna grammar nazi myself but i cbf.
Maybe notch will be able to help out later in future updates.
I downloaded the Linux file Minecraft.jar. I opened the Windows command prompt (Start>Run>cmd), navigated to the directory of Minecraft.jar and typed:
It's the same code from the download page but with lower memory limits. I don't know how high up it could go before running into memory errors. The game runs fine, even after the login screen, but I don't know if it'll work for everyone.
I did have to delete a couple of the .dlls in the .minecraft\bin\natives folder to get the sound to work. Windows complained about the OpenAL64.dll file (probably because I'm running 32-bit Windows) and wouldn't enable sound in the game unless it wasn't there.
No problem. All right, so download Minecraft.jar and place it in a folder like C:\Minecraft. Now, open up the command prompt by going to the Start menu, clicking the Run item, and typing "cmd" (without quotes) in the box. In the command prompt, navigate to the Minecraft folder by typing
Then, type
The command prompt window will show some text and the Minecraft game window should show up. This is what worked for me, but there's no guarantee it'll work for everyone. Kandelon, for example, seems to have tried the same thing but crashed after the login screen. It's worth a try, at least.
Thank you for completing my life! I can now die happy. full screen time!
Type "cd" followed by the directory you want to go to. For example, if you want to go to C:\Program Files\Minecraft, you would type
in the command prompt. Exchange C:\Program Files\Minecraft for any directory you need to get to. This site has some decent information on the commands you can use in the command prompt.
If someone with access to a support sticky could put a link to this thread it could help others with this problem.
This is the easiest work around I've found anywhere on the net. thanks:)
Are you typing it in exactly as shown? Java gives that error when the -X options are typed incorrectly. There should be no spaces in -Xmx512M and -Xms256M.
If you are typing it properly, try lowering the first number to 256M. Also, how much memory does your computer have and what version of Java are you running? To find out the latter, type "java -version" in the command prompt.