Okay, so lots of people (including myself) have had trouble with allocating more RAM to minecraft, getting an error saying "could not start java virtual machine" or similar.
I used to have this problem too,
To fix, first find out if your computer is 64 bit or 32 bit
To do this on Windows, hit start -> right click computer -> properties
Under system, next to system type, you should see 64 bit or 32 bit, depending on your system.
Next, figure out what java you are using.
To do this, go to start -> computer -> your primary drive -> program files (NOT x86!) -> see if there is a folder labeled "java" there. If there is, you have 64 bit java installed.
Next, do the same steps, except this time with program files x86 (Yes x86 this time)
if there is a folder labeled Java there, then you have 32 bit java installed.
Your java version should match your computer version, ex: a 64 bit system with 64 bit java.
My problem was that I had 32 bit java installed on my 64 bit system. This prevented me from allocating more RAM to minecraft.
If you have multiple or mis-matched versions of java installed, uninstall any java versions that don't match. Then, if you don't have the correct version installed, install it now.
Now, run minecraft like usual, and then allocate RAM as usual.
This solved my problems, i cannot guarantee it will solve yours, and I am not responsible for any damage/loss of files on your computer.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
I used to have this problem too,
To fix, first find out if your computer is 64 bit or 32 bit
To do this on Windows, hit start -> right click computer -> properties
Under system, next to system type, you should see 64 bit or 32 bit, depending on your system.
Next, figure out what java you are using.
To do this, go to start -> computer -> your primary drive -> program files (NOT x86!) -> see if there is a folder labeled "java" there. If there is, you have 64 bit java installed.
Next, do the same steps, except this time with program files x86 (Yes x86 this time)
if there is a folder labeled Java there, then you have 32 bit java installed.
Your java version should match your computer version, ex: a 64 bit system with 64 bit java.
My problem was that I had 32 bit java installed on my 64 bit system. This prevented me from allocating more RAM to minecraft.
If you have multiple or mis-matched versions of java installed, uninstall any java versions that don't match. Then, if you don't have the correct version installed, install it now.
Now, run minecraft like usual, and then allocate RAM as usual.
This solved my problems, i cannot guarantee it will solve yours, and I am not responsible for any damage/loss of files on your computer.