I haven't changed anything but my server says that i dont have enough RAM. Here is the text I get in the console when trying to start the server:
java -Xmx2048M -Xms2048M -jar server.jar nogui
Error occurred during initialization of VM
Could not reserve enough space for 2097152KB object heap
Sounds like you've allocated too much RAM to the server. Go into your batch file, and change the RAM depending on how much RAM you have on your computer. By the look of it you don't have enough to run 2GB.
use 64bit java