I've been looking all over the internet for a solution for this one and I just can't seem to get it right.
I have a command that I would like to start when my AWS EC2 server boots.
java -Xmx1740M -Xms1740M -jar /home/ec2-user/server.jar nogui
I've tried the "Change User Data" setting and bash scripts but to no avail.