You can easily create a systemd service in Linux for your java application.
As shown below you can issue enable command to auto start your java application on boot.
cd /etc/systemd/system
vi listener.service
[Unit]
Description=listener
After=syslog.target
[Service]
User=root
ExecStart=/usr/bin/java -jar .......
SuccessExitStatus=143
[Install]
WantedBy=multi-user.target
systemctl enable listener.service
systemctl start listener.service