See this guide here: https://discourse.cubecoders.com/t/setting-up-a-modded-java-minecraft-server/26535#p-50642-h-2-feed-the-beast-21