I've checked all the other answers and I can't seem to find one that fits my situation.
I'll go ahead and list everything I've tried, that way we can cruise through the generic answers.
Heads Up: New PC. Downloaded Java 64x. Copy and Pasted old PC's .minecraft folder. Same specs except for CPU and GPU. It is Modded.
Problem: Everytime I launch Minecraft without allocating any RAM it starts fine but with only 500MB of RAM allocated. I can't add arguments or I get a "Java Virtual Machine" Error. Changing the Environment Variables doesn't affect the 500MB of allocated RAM. If I just add the -Xmx1G etc… argument it launches with 500MB of RAM regardless, unless I add more than 4GB then it spits out the "Java Virtual Machine" error.
Things I've Tried
- Installed Java 64x
- Reinstalled Java 64x
- Re-reinstalled Java 64x
- Ensured I was using 64x Java and not 32x
- Made changes to Environment Variables
- Turned it off and back on again
- Set specific arguments
- Reinstalled Minecraft.
- Re-reinstalled Minecraft.
- Forced Minecraft to Update (with an error)
- Googled fixes for several hours
- Found nothing
- Posted here and several other places.
- Awaiting replies…
*Also, don't know if this is important, but the Java website can't verify my Java.
Best Answer
To those having similar issues in the future:
Typing
cat /proc/meminfo
into the command line will inform you how much RAM you have free on your computer. Oftentimes there's just a lack of memory, meaning you need to either close some programs or upgrade your RAM.If you definitely have enough memory (at least 1GB more than you want to dedicate), then adding
-d64
to the same place where you put-Xmx
and-Xms
will force Minecraft to use Java x64 rather than any Java x86 that somehow snuck onto your machine.Furthermore, you can try adding the 64-bit java to your computer's PATH:
javaw.exe
is in to the PATH by clickingPath
then clicking "Edit", then clicking "New" and adding it there - ensure there is a semicolon (;
) at the end, or it won't work. (Note: If thePATH
variable doesn't exist among "User variables" click "New", and set the following: Variable name =PATH
, Variable value = location of the folderjavaw.exe
is in (this is often Program Files).)If the issue persists beyond that, you don't have 64-bit Java installed.