Catskinner
(Claude Benshaul)
December 20, 2018, 4:39am
1
I’m running OH 2.3 on a Windows 10 PC. In the past I experienced problems with Oracle newer JAVA releases and settled on the 32bit of release 8.171 .
I’m planing now the upgrade to OH 2.4 so my question is it recommended to upgrade the JAVA as well pr should I remain with 171?
hilbrand
(Hilbrand Bouwkamp)
December 20, 2018, 6:52am
2
If that JAVA version worked for you there is no direct need to update. (or if there are some minor upgrades for your JAVA 8 version you can update). The next version wil supported will probably be JAVA 11, but there are some issues. So for now it’s JAVA 8. I assume if something changes with version this will be in the release notes of a next openHAB version.
opened 10:10PM - 17 Sep 18 UTC
closed 10:03PM - 27 Jan 20 UTC
Currently openHAB only supports Java 8 which is the most recent long-term suppor… t (LTS) release of Java.
We should also add support for running openHAB with Java 11, which is the next LTS release and will be released in a week ([September 25th, 2018](http://openjdk.java.net/projects/jdk/11/)).
In #761 Karaf was upgraded to 4.2.1 which supports Java 8, 9, 10 and 11.
After testing openHAB with Karaf 4.2.1 on Java, 9, 10 and the [JDK 11 Early-Access Builds](http://jdk.java.net/11/) the following issues have been found so far:
* XStream causes the JVM to log warnings for _"Illegal reflective access operations"_
See: https://github.com/x-stream/xstream/issues/101, https://github.com/eclipse/smarthome/issues/4369#issuecomment-420170606
* RRD4J persistence addon NoSuchMethodError
See: https://github.com/rrd4j/rrd4j/issues/72, https://github.com/openhab/openhab1-addons/issues/5663
* MaryTTS voice addon StringIndexOutOfBoundsException
See: https://github.com/marytts/marytts/issues/783, https://github.com/openhab/openhab2-addons/issues/3953
For compatibility of Eclipse SmartHome with Java 11 see also [Test ESH with Java 9/10/11](https://github.com/eclipse/smarthome/issues/4369).
---
To simplify JDK 11 testing, I've created an [openhab-docker branch](https://github.com/wborn/openhab-docker/tree/jdk-11) that makes Travis create Debian and Alpine amd64 Docker images using [Zulu Java 11](https://www.azul.com/downloads/zulu/zulu-linux/) every day.
For the available tags see my [wborn/openhab-jdk11](https://hub.docker.com/r/wborn/openhab-jdk11/tags/) Docker Hub repository.
2 Likes