Could not create the Java virtual machine.
Posted 19 September 2010 - 03:57 AM
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.
Posted 19 September 2010 - 08:24 AM
Posted 19 September 2010 - 08:26 AM
Posted 19 September 2010 - 08:31 AM
Posted 19 September 2010 - 08:33 AM
Posted 19 September 2010 - 08:36 AM
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
Posted 19 September 2010 - 08:39 AM
Windows Vista Home Premium SP 2
Intel Core 2 Duo CPU E4400 2.00 GHz processor
3,00 GB RAM
Posted 19 September 2010 - 08:44 AM
Posted 19 September 2010 - 08:49 AM
Posted 19 September 2010 - 08:52 AM
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.
Posted 19 September 2010 - 10:52 AM
Derp i have java, i recently reinstalled it. jesus christ....
can someone provide help now? thanks in advance
Posted 19 September 2010 - 01:28 PM
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:
java.lang.reflect.InvocationTargetException at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) at java.lang.reflect.Constructor.newInstance(Unknown Source) at net.minecraft.GameUpdater.extractLZMA(GameUpdater.java:558) at net.minecraft.GameUpdater.extractJars(GameUpdater.java:627) at net.minecraft.GameUpdater.run(GameUpdater.java:239) at net.minecraft.Launcher$1.run(Launcher.java:73) Caused by: java.lang.OutOfMemoryError: Java heap space at LZMA.LzmaInputStream.readHeader(LzmaInputStream.java:277) at LZMA.LzmaInputStream.
(LzmaInputStream.java:65) ... 8 more Fatal error occured (5): null
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.
Posted 20 September 2010 - 01:26 PM
Posted 21 September 2010 - 05:16 PM
GRR I wanna grammar nazi myself but i cbf.
Posted 21 September 2010 - 08:41 PM
Maybe notch will be able to help out later in future updates.
Posted 22 September 2010 - 10:46 PM
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:
java -Xmx512M -Xms256M -cp Minecraft.jar net.minecraft.LauncherFrame
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.
Posted 24 September 2010 - 03:31 PM
Posted 24 September 2010 - 03:44 PM