Jump to content

Help with Invalid maximum heap size Error


Recommended Posts

Here is my start.bat file code:

@ECHO OFF

java -Xincgc -Xmx1G -jar Tekkit.jar

PAUSE

Whenever i change the 1G to more then 1 I get this error:]

Invalid maximum heap size: -Xmx4G

The specified size exceeds the maximum representable size.

Error: Could not create the Java Virtual Machine.

Error: A fatal exception has occurred. Program will exit.

Press any key to continue . . .

I dont know how to fix it. I reinstalled java 64 bit several times. I have 16G ram on my computer and i just dont know what to do anymore i have tried a lot of things.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...