I just setup a seperate VM running Ubuntu Server 14. Its a fresh/clean install. I then downloaded the latest OH2 On-line Build version and copied it across to the Server.
First I had some permission error and after fixing that then get some stranger Karaf error when trying to start it as follows:
root@OpenHab2:/opt/openhab# ls
addons LICENSE.TXT start.bat start_debug.sh userdata
conf runtime start_debug.bat start.sh
root@OpenHab2:/opt/openhab# ./start.sh
-bash: ./start.sh: Permission denied
root@OpenHab2:/opt/openhab# cd …
root@OpenHab2:/opt# cd …
root@OpenHab2:/# chmod +x -R /opt
root@OpenHab2:/# cd /opt/openhab
root@OpenHab2:/opt/openhab# ./start.sh
Launching the openHAB runtime…
./runtime/karaf/bin/karaf: 165: ./runtime/karaf/bin/setenv: die: not found
./runtime/karaf/bin/karaf: 178: [: Illegal number:
./runtime/karaf/bin/karaf: 239: [: Illegal number:
./runtime/karaf/bin/karaf: 281: [: Illegal number:
./runtime/karaf/bin/karaf: 420: exec: ./bin/java: not found
root@OpenHab2:/opt/openhab#
I removed the entire directory and then recopied over OH2. I then chmod 777 the userdata directory only. And chmod +x only the start.sh and start_debug.sh files. It still didn’t want to start, but reduced to just the one error"
Hello. I am having the same issue with getting OH2 to start. I have installed java but still get the same error. I am wondering what version you used and how you installed it. I have tried several version to no avail. Thank.