Use CMD and run java behind sh to allow it to stop without leaving defunct processes everywhere