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.
im trying to create a 4gb server in java by typing this into a run.bat file java ( -Xmx1024M -Xms1024M -jar server.jar nogui
PAUSE )
then the run.bat file is suppose to create eula file and all that good stuff, doesn't do anything. the cmd comes up with this error
Invalid maximum heap size: -Xmx4096M
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.
literally have no idea what any of that means send help
i now only have this error now
Error occurred during initialization of VM
Initial heap size set to a larger value than the maximum heap size
leave -Xms4096m smaller than -Xmx4096m
If that doesn't work then make sure that -xmx is after -xms
If that doesn't work still, try replacing 4096M with 4G, allocating 4 Gigs of ram.
EDIT: Make the run.bat file in the directory of the server jar, do this by creating a text document, typing the arguments in there, and saving as a .bat file, then you can just click it to run it, much simpler than typing it out.
Don't know what you mean by the first one and the last two didn't work