Examples (4)
Start a Minecraft server and generate a world if it doesn't exist
java -jar path/to/server.jar --noguiSet the minimum and maximum amount of memory a server is allowed to have (Note: Setting them the same prevents lag caused by heap scaling)
java -Xms1024M -Xmx2048M -jar path/to/server.jar --noguiStart a server with a GUI
java -jar path/to/server.jar[Interactive] Shut the server down
stopmade by @shridhargupta | data from tldr-pages