More Info: How to Fix the Could Not Create the Java Virtual Machine Error
Need Help? Click here for more information on How to Fix the Could Not Create the Java Virtual Machine Error.
Need Help? Click here for more information on How to Fix the Could Not Create the Java Virtual Machine Error.
Invalid initial heap size: -Xms 4096M
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.
I know its saying that there is too much Memory going into it. I thought that meant I have a 32bit java so i also downloaded java 7 Update 67 64 bit. Same errors. I have run this server for two months with 4GB of RAM on it. Can anyone tell me how to fix this? Also i have a 64bit Windows 7. Heres the start.bat code:
@echo off
java -Xms4096M -Xmx4096M -XX:MaxPermSize=128M -jar spigot.jar
PAUSE
java -Xms1024M -Xmx4096M -XX:MaxPermSize=128M -jar spigot.jar
Also I would remove 32bit java
Edit: 32Bit Java uninstalled, now it says Java is not a recognized command. the PATH i have in there is:
C:\Program Files (x86)\Java\jre7\bin
EDIT: This is what is in my PATH: C:\Program Files (x86)\Java\jre7\bin\Java.exe Nothing else is there. Did i screw it up again?
Did you un-install Java 32 bit before installing Java 64 bit?
Edit: I'm just gonna uninstall all java I have and 're install it and see if it works.