openHAB will not start - Java error

  • Platform information:
    • Hardware: _CPUArchitecture/RAM/storage_Intel W3520 quad core
    • OS: _what OS is used and which version_Windows 10 Pro v1803
    • Java Runtime Environment: _which java platform is used and what version_Zulu build 11-ea+22
    • openHAB version:2.3.0
  • Issue of the topic: please be detailed explaining your issue
    open HAB fails to start JVM. Here is the text from the cmd window:

D:\OpenHAB\openhab-2.3.0>start.bat
Launching the openHAB runtime…
-Djava.endorsed.dirs=D:\Program Files\Zulu\zulu11.1+23-ea-jdk11-win_x64\jre\lib\endorsed;D:\Program Files\Zulu\zulu11.1+23-ea-jdk11-win_x64\lib\endorsed;D:\OpenHAB\openhab-2.3.0\runtime\bin…\lib\endorsed is not supported. Endorsed standards and standalone APIs
in modular form will be supported via the concept of upgradeable modules.
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.

D:\OpenHAB\openhab-2.3.0>java -version
openjdk version “11-ea” 2018-09-25
OpenJDK Runtime Environment Zulu11.1+23 (build 11-ea+22)
OpenJDK 64-Bit Server VM Zulu11.1+23 (build 11-ea+22, mixed mode)

  • Please post configurations (if applicable):
    • Items configuration related to the issue
    • Sitemap configuration related to the issue
    • Rules code related to the issue
    • Services configuration related to the issue
  • If logs where generated please post these here using code fences:

openHAB 2.3.0 only works with Java 8 and not Java 11. :wink:

The recent 2.4.0-SNAPSHOT builds have some initial support for Java 11 but it needs to be further tested.

See also: https://github.com/openhab/openhab-distro/issues/768

FYI, I’ve read in other post that 32Bit Java (even on a 64 Bit OS) should be installed.

I’ve been running a 64bit install of Oracle Java on a Windows 12 Server with OH with no issues. Make sure you update the server variable JAVA_HOME with the path to the new Java install.

1 Like

Thanks @KidSquid I don’t use Windows but that’s good info to pass along for others.

1 Like

Hi ,

Thanks to you all for your responses.

I have changed my Java version to 8 (32 bit) and it appears to be working fine

Alan

2 Likes

Please mark the thread as solved, thanks
hc_292

Happy to do that, but I can’t determine how it is achieved?

Tick the mark below the post that provided the solution to your problem

That’s only the case if running in an arm processor and need support for serial devices like a zwave controller.