Synology: Would like to run start.sh via "Aufgabenplaner"

Hi, I would like to start openhab via Aufgabenplaner.

The script start.sh looks like:

#!/bin/sh

echo Launching the openHAB runtime…

if [ ! -z ${OPENHAB_RUNTIME} ]; then
RUNTIME=${OPENHAB_RUNTIME}
else
RUNTIME="dirname "$0"/runtime"
fi

exec “${RUNTIME}/bin/karaf” “${@}”

It works via Terminal but not in Aufgabenplaner.

Command in Aufgabenplaner is:
/volume1/SmartHome/openhab-2.5.12/start.sh >>/volume1/homes/test.txt

Then I get the error message:
Launching the openHAB runtime…
java command not found

Anybody out there who can help?

means that the java binary is not found in the search path.

Yes I know. Do you have any idea how to modify the start.sh?

As I don’t own a Synology following is not based on my experience just based on g**gle search: