Check this link to see how to run a script during Ubuntu startup
How to run a script at the start up of Ubuntu?
The script could be a java -jar jarname call.
Off course java has to be installed.
solved How to start the java (.jar) application at boot time of ubuntu [closed]