I'm new to all of this so I probably made a big rookie mistake. I want to start a screen, which was successful, and then run command, which is not working. When I terminate the screen the command runs, but it needs to be ran on that specific screen. Thank you all in advance.
#!/bin/bash
clear
cd ~/Directory/
screen -S "Screen_Name"; java -Xmx1024M -Xms1024M -jar server.jar nogui