You can also do it in tmux in a similar manner:
@reboot tmux new-session -ds mc-server 'java -Xmx1024M -Xms1024M -jar minecraft_server.jar nogui'
Then to reconnect, it would be like this from the shell:
tmux attach -t mc-server
If you need to share the mc server with others, there are ways to make it read-only.