Hey folks, got what appears to be a fairly common error within the Java world: but has yet to be experienced by the MineCraft community (did a search for it).
I am currently getting an error in which the offline MineCraft client will not load. I download the executable and then double click it and it gives me an error stating: "Could not create the java virtual machine." It does not halt at a black screen, it does not hold up: it simply goes straight to the error message.
I have tried to run the java console and logging, to which it gave me no information: as if JVM was not even seeing or hearing from this executable. Others run this exe, even my exe, just fine. No log files are generated upon the error message being generated. I have tried running through command prompt, to see what is generated, but nothing is echo'd back or printed out there. I have deleted all of my temp directories for minecraft, except that which houses my saved game files.
I have googled this to all hell, and the best recommendation is "reformat, try that". I would rather not reformat my machine on a whim...
Is there anything anyone can think of to help me? I have reinstalled java several times, verified it is the latest version, and the game runs fine when being run from the browser.
Download and run the Minecraft.jar that's listed under "Linux" in the Download page. Exes are not exactly the most stable, but the .jar, being a Java executable file, should work in Windows since it's not built for one platform in particular.
Remember to run it with admin priviliges if it doesn't work the first time.
If that doesn't work, reply with your results here, and I'll try and narrow the problem down more.
Downloaded the Linux client, same error. I did try to run as an administrator, it did not give me any different error message though (same one as mentioned previously). I ran the minecraft.exe as an administrator, and it gave me an error as being unable to run the jarfile "C:\locationhere\Minecraft.exe" The locationhere is just the folder where the minecraft.exe is located.
Quite honestly, it may be a registry error with Java.
Reformatting is usually the cure-all. However, you really want to make sure it's an issue with the registry rather than something else.
If you have the time and a blank CD, try running a Linux distribution like Ubuntu (DO NOT INSTALL, just run it from the CD) and seeing if the problem persists. If it works on the cd-boot-Linux, then that means that, unfortunately, it is a registry error, and you may then have to:
1) Backup all your files
2) Find a good registry fixer
3) If #2 fails, reformat your disk/reinstall Windows
I'm sorry I can't help you further, but even the people over at Sun don't know what really causes this error.
Well thanks for the effort and info Imxset21. Unlike the other responses to this error on other boards, I've learned this is a registry issue with java. I'll look around for a registry fixer, but worse comes to worse I'll be backing up files.
I hope you don't mind the revival of this thread, but I'm also having the same trouble as well. Every time i try and open the program, it gives me the same "Could not create Java Virtual Machine" error with no other information.
Now I know that reformatting and reinstalling the registry key has already been mentioned, but my computer is custom built and was sent to me from the lower 48 ((I live in Alaska)), so I don't have the XP installation disk. ((I'm also missing a few other programs, like microsoft works, which annoys me. This pC was basically optimized for playing TF2 and L4D, along with other PC games.)) I also don't feel completely safe reformatting my whole computer, since it's missing some components a normal XP system would have.
Is it possible to find a registry fix that won't require a full PC formatting? this is the only way I can really feel safe for my computer with the minimal chance of it exploding on me.
I'm getting the same error message, however I've noticed that client magically works for me after the game is updated. So, yesterday after Seecret Friday Update client started up, updated itself and was working fine. Today, it gives me this 'java virtual machine' error. Any ideas what the hell?
I have no problems playing Minecraft in browser (Opera 10.60), but I'd really prefer playing it with client, because performance is much better this way.