I recently needed to be able to kick off a jar file running for a batch job in the background from a linux shell. After some googling I found the required steps.

Save the following into your .sh file, replacing the jar file name

nohup java -jar JARFILENAME.jar &1


Matt Reid

Lead Software Architect. Java, Node.js and TypeScript enthusiast.

drei01 Matthew_Reid