Hi sihui
I seem to be suffering the same issues as in this thread.
Using a Raspberry Pi 2 (with fast clock enabled and Ethernet connected to my home network) I started by installing openHAB and getting it up and running by copying the default configuration file openhab_default.cfg and naming it openhab.cfg making the necessary deltas, then hand crafting .sitemap .item and .map files, which I then tried to view via my Win 7 box with Internet explorer 11 (http://openhab.local:8080/openhab.app?sitemap=blahblahblah). It failed. I then tried Chrome (Version 51.0.2704.84 m) and it worked fine. I also tried iOS and Andriod openHAB APPs and they worked (more or less).
Now because I found the hand crafting thing a PITA I wanted to use openHAB Designer to help with the syntax validation etc. and I know this software works as I saw it demoed on YouTube by Kai Kreuzer and Thomas Eichstädt-Engelen on ‘Home Automation for Geeks’, https://www.youtube.com/watch?v=Wb5q2cvkU-U. Allbeit with iOS on a MAC.
Although I possess a MAC Mini, a Linux Box I wanted to use one of my Win 7 boxes to do the work, mainly for convenience (I am writing a blog post and most of the readers have Windows boxes). So I mapped my Raspberry Pi openHAB install via Samba so I could see it from my Win 7 Box. No issues here.
Then installed the openHAB Developer (basically unzipped it) as I already had Java 1.8.0_92 on Win 7 Box. This Failed.
After some routing round (https://github.com/openhab/openhab/issues/1714), I found I needed the 32bit version of Java so I installed ‘jre-8u92-windows-i586.exe’.
I decided to edit the ‘openHAB-Designer.ini’ file (rather than the shortcut), adding -vm C:\Program Files (x86)\Java\jre1.8.0_92\bin\javaw.exe. And Bingo it worked!
I followed step 3. of ‘Installing the openHAB designer (optional)’ http://www.openhab.org/getting-started/
Namely;
3.Select the “configurations” folder of your runtime installation in the folder dialog that is shown when selecting the “open folder” toolbar icon.
No issues here. I was able to to view all my files I had created earlier; .sitemap, .item and .map. However, when I tried to use the internal web browser the software would consistently lock. On every occasion I needed to use the Windows Task Manager to kill the thread.
Basically I can’t get the Windows install of openHAB-Designer to work. No matter how hard I try. So I gave up with the Windows version.
Not put off by this I thought I would try to install openHAB-Designer on the Raspberry Pi and use XMing to forward to my Win 7 box and edit from there.
So I installed on the Raspberry Pi (as I have a Pi 2 and I believe this is a 32bit ARM Core I chose the 32bit version of OpenHAB Designer) under ‘/opt/openhab-designer’. As per ‘http://www.openhab.org/getting-started/’
I followed these steps (from the command line on the Pi);
sudo mkdir /opt/openhab-designer
cd /opt/openhab-designer
sudo wget https://bintray.com/artifact/download/openhab/bin/distribution-1.8.3-designer-linux.zip
sudo unzip distribution-1.8.3-designer-linux.zip
Before I start to attempt using XMing I really want to ensure the software fully functions from the Raspberry Pi. However everytime I try to run the software ‘openHAB-Designer’ it fails.
The Raspberry Pi is running ‘2016-03-18-raspbian-jessie’ a pretty recent distro. Besides I always run an apt-get update upgrade to make sure I have the latest.
I’ve tried running from /opt/openhab and nothing works.
An ls - l of /opt/openhab-designer gives
================== ls -l ==================
pi@OPENHAB:/opt/openhab-designer $ ls -l
total 111340
drwxr-xr-x 2 root root 4096 May 22 21:42 addons
-rw-r–r-- 1 root root 85642 May 22 21:41 artifacts.xml
drwxrwxrwx 5 root root 4096 May 22 21:44 configuration
-rw-r–r-- 1 root root 113502967 May 22 20:05 distribution-1.8.3-designer-linux.zip
-rw-r–r-- 1 root root 15551 Aug 21 2012 epl-v10.html
drwxrwxrwx 25 root root 4096 May 22 21:24 features
-rwxr-xr-x 1 root root 266168 May 22 21:41 libcairo-swt.so
-rw-r–r-- 1 root root 9229 Aug 21 2012 notice.html
-rwxr-xr-x 1 root root 63050 May 22 21:41 openHAB-Designer
-rw-r–r-- 1 root root 283 May 22 21:42 openHAB-Designer.ini
drwxrwxrwx 4 root root 4096 May 22 21:44 p2
drwxrwxrwx 12 root root 36864 May 22 21:44 plugins
drwxrwxrwx 2 root root 4096 May 22 21:44 readme
I’ve tried the following command line incantations.
Attempt 1
/opt/openhab-designer $ openHAB-Designer
gives
-bash: openHAB-Designer: command not found
Attempt 2
/opt/openhab-designer $ ./openHAB-Designer
gives
-bash: openHAB-Designer: cannot execure binary file: Exec format error
Attempt 3
/opt/openhab-designer $ sudo openHAB-Designer
gives
sudo: openHAB-Designer: command not found
Attempt 4
/opt/openhab-designer $ sudo ./openHAB-Designer
gives
./openHAB-Designer: 1: ./openHAB-Designer: Syntax error: “(” unexpected
.
.
What am I doing wrong?
Any help would be greatly appreciated.
Regards
SQ
=======================================================
Ahhhh. Update.
Just done some more googling.
See here.
https://groups.google.com/forum/#!topic/openhab/-Ol42n-USn0
Straight from the horses mouth so to speak. Kai posted on 23/10/2013.
‘The Designer is indeed not meant to be executed on a RaspPi - it should be used on some desktop computer instead. As you correctly figured out, it is build for x86 architectures and has quite a big footprint (just like the Eclipse IDE). My usual suggestion is to simply use a Samba share to access the configuration files on your RaspPi from the Designer; more elegant ways might be offered in future’
Ok.
So my question would be. Why is my PC install of openHAB-Designer not working?