OH not running on raspbian

Hi.

I tride to setup OH.But it didn’t start up.

I use alternatives.

Please help me.

(I’m japanese. So Code is Japanese.
“月” mean “Month”
“火” mean “Thuesday”
“行” mean “Line”
“そのようなファイルやディレクトリはありません” mean “No such file or directory was found”)


pi@raspberrypi:~ $ sudo systemctl status openhab2.service
● openhab2.service - openHAB 2 - empowering the smart home
   Loaded: loaded (/usr/lib/systemd/system/openhab2.service; disabled)
   Active: deactivating (stop) (Result: exit-code) since 火 2017-02-21 11:57:35 JST; 1s ago
     Docs: http://docs.openhab.org
           https://community.openhab.org
  Process: 4384 ExecStart=/usr/share/openhab2/start.sh server (code=exited, status=127)
 Main PID: 4384 (code=exited, status=127);         : 4496 (karaf)
   CGroup: /system.slice/openhab2.service
           mqcontrol
             tq4496 /bin/bash /usr/share/openhab2/runtime/bin/karaf stop
             mq4645 /usr/lib/jvm/jdk1.8.0/bin/java -Dopenhab.home=/usr/share/openhab2 -Dopenhab.conf=/etc/openhab2 -Dopenhab.runtime=/usr/share/openhab2/runtime -Dopenhab.userdata=/var/lib/openhab2 -Dopenhab.logdir=/var/log/openhab2 -...

 2月 21 11:57:34 raspberrypi systemd[1]: Started openHAB 2 - empowering the smart home.
 2月 21 11:57:34 raspberrypi start.sh[4384]: Launching the openHAB runtime...
 2月 21 11:57:34 raspberrypi start.sh[4384]: /usr/share/openhab2/runtime/bin/setenv: 181 行: [: : 整数の式が予期されます
 2月 21 11:57:35 raspberrypi start.sh[4384]: /usr/share/openhab2/runtime/bin/karaf: 261 行: [: : 整数の式が予期されます
 2月 21 11:57:35 raspberrypi start.sh[4384]: /usr/share/openhab2/runtime/bin/karaf: 306 行: [: : 整数の式が予期されます
 2月 21 11:57:35 raspberrypi start.sh[4384]: /usr/share/openhab2/runtime/bin/karaf: 行 497: /usr/bin/java です: そのようなファイルやディレクトリはありません
 2月 21 11:57:35 raspberrypi systemd[1]: openhab2.service: main process exited, code=exited, status=127/n/a
 2月 21 11:57:36 raspberrypi stop[4496]: stop: Ignoring predefined value for KARAF_HOME


@sumizome0213 It seems pretty obvious to me, that JAVA is not installed or not correctly configured (e.g. the PATH variable is not set correctly) - just a hint.

If you want a setup the easy way without the need to learn about Linux try openHABian:

http://docs.openhab.org/installation/openhabian.html

Was self resolved
It started after rebooting
Thank you for answering