1

Interesting .bat Error when allocating more RAM

RoostahBoi2 5/22/13 12:51 pm
79
5/23/2013 1:10 pm
Hello!

I am writing this quick post because I have a error when trying to Allocate more RAM.

The error is :

Error occurred during initialization of VM
Could not reserve enough space for object heap
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
Press any key to continue . . .


My Java is 64 bit and is updated,

My .bat code is :

@ECHO OFF
SET BINDIR=%~dp0
CD /D "%BINDIR%"
"%ProgramFiles(x86)%\Java\jre7\bin\java.exe" -Xincgc -Xmx2G -jar craftbukkit.jar -o true
PAUSE


Thanks! I hope you can help.
Posted by
RoostahBoi2
Level 2 : Apprentice Explorer
0

  Have something to say?

JoinSign in

2

Firework4lj
05/23/2013 1:10 pm
Level 46 : Master Gent
In your .bat file it is directing it to your 32 bit java it looks like. When it says programfiles(x86) that means its your 32 bit applications. Also, make sure you have a 64 bit operating system installed. If you don't, a 64 bit java installation won't make any difference.
1
Rogue
05/22/2013 6:54 pm
Level 12 : Journeyman Crafter
What are the specs of your machine? Can you get a screenshot of
java -version

from your console as well?
1

Welcome