I'm new to Java, so I followed this tutorial to learn how to make a Modded Minecraft server. But, in the tutorial, it isn't shown how to run the .jar
file as a server, on my own PC. When I try the CMD command java -Xmx1024M -Xms1024M -jar jarfile.jar
, I get this error:
no main manifest attribute, in jarfile.jar
Is there any way that I can run a server from the .jar
file? Thank you in advance!