I'm facing a strange behaviour on a Centos Dist trying to run a bootable jar created with spring boot.
If I run the jar app from the shell it runs perfectly
When running the app with a service created with the following config:
[Unit]
Description=app
After=syslog.target
[Service]
ExecStart=/foo/bar/app.jar
SuccessExitStatus=143
[Install]
WantedBy=multi-user.target
~
I keep getting the error "Unable to find Java"
I checked the $PATH and $JAVA_HOME properties and they are set up correctly (I don't think this adds more information because the bootable jar runs correctly without beeing a service)
What I'm doing wrong? Been messing around this problem for 3 days and it's driving me mad.

