Running jar file as linux service
I want to know how can I run a .jar file as a linux service. I'm new to Linux so most of the online resources didn't help. Any input on this would be helpful.
+3
manil
source
to share
1 answer
It depends on how you want to start the jar. You can always run a java program as a background task.
In bash
$nohup <path to java> -classpath <classpath> classname &
It looks like Java service wrapper is a solution that might fit your case.
0
Jayan
source
to share