I'm trying to make a server file for my modpack, and whenever I try to launch the server on my pc, nothing happens. When I try to launch it through a .bat file, I get the error in this image. I've tried this with versions 36.1.17, and 36.2.2, and my Java is version 8 Update 301. My SE Kit is 16.0.1. The arguments for my .bat file are as follows:
java -Xms1024M -Xmx8192M -jar forge-1.16.5-36.2.2.jar
pause
Solution: The extra jvm arguments suggested in the "How to avoid crashes" tab helped.