Cannot start OH2 on UBUNTU 16.04 LTS

I have been following the tutorial http://docs.openhab.org/installation/linux.html#installation

however I cannot get HH2 to start

When I do
sudo systemctl status openhab2.service
I get the following

sudo systemctl status openhab2.service
ā— 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 Sat 2017-11-18 12:48:00 GMT; 2s ago
     Docs: http://docs.openhab.org
           https://community.openhab.org
  Process: 29633 ExecStop=/usr/share/openhab2/runtime/bin/karaf stop (code=exited, status=127)
  Process: 29568 ExecStart=/usr/share/openhab2/runtime/bin/karaf $OPENHAB_STARTMODE (code=exited, status=127)
 Main PID: 29568 (code=exited, status=127)

Nov 18 12:48:00 ubuntu2 systemd[1]: openhab2.service: Unit entered failed state.
Nov 18 12:48:00 ubuntu2 systemd[1]: openhab2.service: Failed with result 'exit-code'.

This is usually related to Java not being found.

What is the error message inside:

sudo journalctl -u openhab2 -b

Hi, yes it was java, ive progressed a little since this topic so i will mark it as solved. Thanks for the reply

1 Like