- Platform information:
- Hardware: linux 2 gb ram 20 gb harddisk drive
- OS: Ubuntu 18.04.1
- Java Runtime Environment: build 1.8.0_181-b13
- openHAB version: dont know (newest)
- Issue of the topic: Failed with result ‘exit-code’.
When i want to start openHAB and then enter sudo systemctl status openhab2.service i get this message:
openhab2.service - openHAB 2 - empowering the smart home
Loaded: loaded (/usr/lib/systemd/system/openhab2.service; enabled; vendor preset: enabled)
Active: activating (auto-restart) (Result: exit-code) since Sun 2018-09-16 11:30:30 PDT; 3s ago
Docs: https://www.openhab.org/docs/
https://community.openhab.org
Process: 58575 ExecStart=/usr/share/openhab2/runtime/bin/karaf $OPENHAB_STARTMODE (code=exited, status=1/FAILURE)
Main PID: 58575 (code=exited, status=1/FAILURE)
Sep 16 11:30:30 ubuntu systemd[1]: openhab2.service: Main process exited, code=exited, status=1/FAILURE
Sep 16 11:30:30 ubuntu systemd[1]: openhab2.service: Failed with result ‘exit-code’.
I installed java in /usr/java and set the JAVA_HOME in .bashrc file with
export PATH=$PATH:/usr/java/jre1.8.0_181/bin/