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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...