- Platform information:
- Hardware: beaglebone black, 512MB RAM, SD
- OS: debian 11.7 iot
- Java Runtime Environment: zulu17.46.19-ca-hl-jre17.0.9-linux_aarch32hf.tar.gz
- openHAB version: 4.1 stable
I have extracted zulu to /opt/zulu17_jre
I did:
sudo update-alternatives --install /usr/bin/java java /opt/zulu17_jre/bin/java 1
and I have installed openhab by
sudo apt-get install openhab
Try to start the openhab service ends up:
debian@BeagleBone:/etc/alternatives$ sudo journalctl -xe
░░ the configured Restart= setting for the unit.
Jan 10 13:58:53 BeagleBone systemd[1]: Stopped openHAB - empowering the smart home.
░░ Subject: A stop job for unit openhab.service has finished
░░ Defined-By: systemd
░░ Support: https://www.debian.org/support
░░
░░ A stop job for unit openhab.service has finished.
░░
░░ The job identifier is 1728 and the job result is done.
Jan 10 13:58:53 BeagleBone systemd[1]: Started openHAB - empowering the smart home.
░░ Subject: A start job for unit openhab.service has finished successfully
░░ Defined-By: systemd
░░ Support: https://www.debian.org/support
░░
░░ A start job for unit openhab.service has finished successfully.
░░
░░ The job identifier is 1728.
Jan 10 13:58:53 BeagleBone karaf[1523]: /usr/share/openhab/runtime/bin/karaf: 1: basename: not found
Jan 10 13:58:53 BeagleBone karaf[1525]: /usr/share/openhab/runtime/bin/karaf: 1: dirname: not found
Jan 10 13:58:53 BeagleBone karaf[1527]: /usr/share/openhab/runtime/bin/karaf: 1: ls: not found
Jan 10 13:58:53 BeagleBone karaf[1530]: /usr/share/openhab/runtime/bin/karaf: 1: dirname: not found
Jan 10 13:58:53 BeagleBone karaf[1531]: /usr/share/openhab/runtime/bin/karaf: 1: basename: not found
Jan 10 13:58:53 BeagleBone karaf[1519]: /usr/share/openhab/runtime/bin/karaf: 67: .: cannot open /inc: No such file
Jan 10 13:58:53 BeagleBone systemd[1]: openhab.service: Main process exited, code=exited, status=2/INVALIDARGUMENT
░░ Subject: Unit process exited
░░ Defined-By: systemd
░░ Support: https://www.debian.org/support
░░
░░ An ExecStart= process belonging to unit openhab.service has exited.
░░
░░ The process' exit code is 'exited' and its exit status is 2.
Jan 10 13:58:53 BeagleBone systemd[1]: openhab.service: Failed with result 'exit-code'.
░░ Subject: Unit failed
░░ Defined-By: systemd
░░ Support: https://www.debian.org/support
░░
░░ The unit openhab.service has entered the 'failed' state with result 'exit-code'.
Jan 10 13:58:54 BeagleBone sudo[1532]: debian : TTY=pts/0 ; PWD=/etc/alternatives ; USER=root ; COMMAND=/bin/journalctl -xe
Jan 10 13:58:54 BeagleBone sudo[1532]: pam_unix(sudo:session): session opened for user root(uid=0) by debian(uid=1000)
Bad luck there is not much details about how to “install” java out of a tar.gz.
I am not sure whether (and where exactly) I have to set variables like (JAVA_HOME, PATH) - I have tried different things but with no result. Or am I on a complete wrong track?
Can you help?