Is there a way to use the Linux machine to run a Java JAR file on boot?
I already attempted to create a Linux .sh file with “java -jar myapp.jar” in the /etc/init.d folder and used “update-rc.d myscript defaults” to use SysV so that the script would start the system but it did not seem to work. In addition to this, I attempted to insert the “java -jar myapp.jar” command inside of the urcontrol.sh after the urcontrol call but that also did not work.
Also, will this functionality cause issues with any dependencies that URControl relies on?
I would suggest creating a URCap. This is essentially a jar-archive.
A URCap is an OSGi bundle, and the start() method in the Activator-class is called on PolyScope boot.
My intention is to eventually develop this into a URCap but currently I would like a quicker solution to get the application off the ground. Is there a quick/simpler alternative? I’d like to bypass the HTML, Maven, URCap deployment, etc. dev and debug for right now.