When I try to run it it gives me this error: Error: Could not create the Java Virtual Machine. Error: A fatal exception has occurred. Program will exit. Invalid maximum heap size: -Xmx4096M The specified size exceeds the maximum representable size. Process ended with code: 1 How should I fix this?
Man, this needs to be on a FAQ thread. You're running the game with 32-bit java. Install 64-bit java.
Thank you, I did it. Now it gives me this error: The game is running. Please wait. Error occurred during initialization of VM Initial heap size set to a larger value than the maximum heap size Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=256M; support was removed in 8.0 Picked up _JAVA_OPTIONS: -Xmx512M Process ended with code: 1
Oh, now you have the _JAVA_OPTIONS issue. Not sure why this happens. You can try this solution: 1) Open Start menu, typ "env" and click "Edit the system enviroment variables" 2) Click "Enviroment Variables" 3) Locate the "_JAVA_OPTIONS" entry under "System variables" 4) Select "_JAVA_OPTIONS" and click the "Delete" button.