OpenHAB2 can't start

It’s my first install on OpenHAB2 in UBUNTU 16.04, when I put the line

sudo systemctl start openhab2.service
sudo systemctl status openhab2.service

Than show this:

    Process: 8816 ExecStop=/usr/share/openhab2/runtime/bin/stop (code=exited, status=127)
    Process: 8750 ExecStart=/usr/share/openhab2/ server (code=exited, status=127)
  Main PID: 8750 (code=exited,  status=127)

Someone can help me.


If you are running openJDK, try to switch to Oracle or Zulu JDK to see if it helps.

how can I do this?

this guide is a bit old but it gives you some pointers.

remove openjdk and then install oracle jdk using apt-get method from a repository.

Thank you @Dim.
It seems it´s working.

1 Like


good luck with your openHAB configs (items, sitemaps, things, links, etc, etc) now ! :slight_smile:

1 Like

Follow the tutorials shared by Dim.