daz3nt
(Darren Sneddon)
February 23, 2017, 3:04pm
1
I’m sorry if this is a daft question, I’ve searched for hours to update java to version 1.8.0_111 but no matter what tutorial i follow it’s still stuck on this
pi@raspberrypi:~ $ java -version
java version "1.8.0_65"
Java™ SE Runtime Environment (build 1.8.0_65-b17)
Java HotSpot™ Client VM (build 25.65-b01, mixed mode)
any help please?
here is what i tried last
https://kurlan.github.io/scrappy-home-automation/setting-up-openhab/
1 Like
Rob_Pope
(Rob Pope)
February 23, 2017, 3:12pm
2
I had exactly the same problem last night and found this post was most helpful
I'm trying to get my.openhab to work in order to access my data remotely and read that there were issues with old builds of java that may solve my problem.
It looks like I'm currently on build 65, but I've read that the build is over 101. How can I pull whatever the latest version is automatically?
pi@raspberrypi:~ $ java -version
java version "1.8.0_65"
Java(TM) SE Runtime Environment (build 1.8.0_65-b17)
Java HotSpot(TM) Client VM (build 25.65-b01, mixed mode)
You can just follow these steps:
sihui:
I did -almost- the same, but used the WebUpd8 installer in @Udo_Hartmann link to get automated java updates in the future (I wasn’t aware that this is not done automatically through apt-get update/upgrade on a Raspbian Jessie installation on a Raspberry Pi), but you have to make a slight change to the tutorial: instead of su - use sudo su: sudo su echo “deb http://ppa.launchpad.net/webupd8team/java/ubuntu xenial main” | tee /etc/apt/sources.list.d/webupd8team-java.list echo "deb-src http://ppa …
daz3nt
(Darren Sneddon)
February 23, 2017, 5:05pm
4
I think i found the problem, I had to run
sudo apt-get install apt-transport-https
I’ll see how that goes now, thanks for your help everyone
(EDIT) it worked
pi@raspberrypi:~ $ java -version
java version "1.8.0_121"
Java™ SE Runtime Environment (build 1.8.0_121-b13)
Java HotSpot™ Client VM (build 25.121-b13, mixed mode)
Benjy
(Ben Clark)
February 23, 2017, 5:21pm
5
The openHAB documentation for Linux installation also points you in the right direction. Whenever you get stuck, it may be best to check here first ;).
daz3nt
(Darren Sneddon)
February 23, 2017, 5:25pm
6
The openHAB documentation for Linux installation also points you in the right direction. Whenever you get stuck, it may be best to check here first .
I must have missed that bit, I’ll only ask on here as a last resort, I don’t like to hassle people. Thanks again all.
Benjy
(Ben Clark)
February 23, 2017, 5:29pm
7
I’m all for being “hassled” if I can help, as are most people here! Was just passing the link on to save you time in the future !
1 Like