Trouble with Ubuntu Server

I installed a Blynk server on a computer running Ubuntu. I had it on my Pi but I’ve been having some issues, mostly pi related, so I wanted to switch to a full computer. The server runs fine when I manually launch it with java -jar server-0.20.1.jar -dataFolder /home/USER/Blynk but then the terminal freezes and if I close the terminal the server stops. Also, I can’t get the server to autostart when the computer starts up. Any ideas?

Got it working. I needed to change the rc.local file in etc folder not the rc.local file in init.d folder. Silly oversight.