This question already has answers here: Could not reserve enough space for object heap (26 answers) Closed last year .

I have 32G of ram on my desktop so I know the amount of ram isn't the issue but I keep getting the same error saying "error occurred during initialization of vm could not reserve enough space for object heap"

Maybe I'm not running 64bit java? How do I change that? My computer is 64bit.

java -Xmx3G -Xms2G -jar server.jar nogui pause