Thank you for this information.
MyOpenHab stopped on the day I went on holyday. After returning I tried (among other things) you script. I don’t understand what I am doing, but it works. I did not even need to reboot.
On my Debian Wheezy Raspberry Pi 2 I installed using the instructions provided by sihui above
(btw this website http://www.webupd8.org/2014/03/how-to-install-oracle-java-8-in-debian.html
indicated this Ubuntu instruction was good on a Debian installation)
2016-08-29 21:46:24 (583 KB/s) - `jdk-8u101-linux-arm32-vfp-hflt.tar.gz’ saved [81542641/81542641]
Download done.
Removing outdated cached downloads…
update-alternatives: using /usr/lib/jvm/java-8-oracle/jre/bin/jjs to provide /usr/bin/jjs (jjs) in auto mode
and then
Oracle JDK 8 installed
root@robsberrypi:/usr/bin# java -version
java version "1.8.0"
Java™ SE Runtime Environment (build 1.8.0-b132)
Java HotSpot™ Client VM (build 25.0-b70, mixed mode)
did
update-alternatives --config java
and selected 3 from
Selection Path Priority Status
and still get the same java version as before the update
java -version
java version "1.8.0"
Java™ SE Runtime Environment (build 1.8.0-b132)
Java HotSpot™ Client VM (build 25.0-b70, mixed mode)
And so still getting:
22:26:01.482 [DEBUG] [o.myopenhab.internal.MyOpenHABClient] - No connection, Item update is not sent
That was what I was trying to update to:
`jdk-8u101-linux-arm32-vfp-hflt.tar.gz’ saved
After the installation it reports the same version even after I select the new version from
update-alternatives --config java
OK - got it.
I ran that same command again and selected the 0 option and now have:
java version “1.8.0_101”
Java™ SE Runtime Environment (build 1.8.0_101-b13)
Java HotSpot™ Client VM (build 25.101-b13, mixed mode)
Thanks.
Awesome this is PERFECT.
All this time I thought that my Java was ok but after finally tried to upgrade to the last manually (I was thinking that apt-upgrade that…) Everything is working flawless!
And of course you point me how to automatically upgrade it for next java update!
You need an Oracle Account to download this file. Download this one: Linux ARM 32 Hard Float ABI
Now to my problem. I have now the correct JAVA version running but my openhab is still marked as offline. One ideas what it won’t worked.
I restart openhab and the pi a many times.
Which version of openHAB? The file location for uuid and secret is different from version 1 and version 2. Double check you have the correct uuid and secret put into your my.openhab account.
For those that don’t want override apt-get install of java, and faff about with manually installing java.
As someone mentions at the start of this topic, installing the lets encrypt cert to the java cert store works nicely, so this is an alternate (and slightly easier ) method of getting myopenhab.org working again! Currently the latest java out in the raspberry pi repository is 1.8.0_65, so you have to do a manual installed (as suggested in this thread) of java 1.8.0_101+
Second 2 commands are importing these chains into java’s certificate store. You will just need to modify the path to be where your java is installed. This path was the default path from the apt-get installation of oracle java (this should be accessible via $JAVA_HOME environment variable)
and of course, things will not start working until you do a reboot