JAVA_HOME is not valid?

  • Platform information:
    • Hardware: _x64
    • OS: Ubuntu LTS 18
    • openHAB version: 2.5

My OpenHab runs since years - was updated a few times and all in all it goes really well.

It runs in a docker container under ubuntu.

No I got wire problems wie Zwave (every view seconds it dedicate ma USB stick and after that it work and goes offline…)

Thought it a bug cause of early 2.5 -> updated to latest and now my container wont start anymore.

Error in Log:
Launching the openHAB runtime…
JAVA_HOME is not valid: /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java

Played a bit with environmet settings and installed new java versions

Unbenanntes Bild

But it wont start my container :frowning:

JAVA_HOME has to point to a directory . According to your log entry it looks like it would point to the java binary itself. It needs to point to /usr/lib/jvm/java-8-openjdk-amd64/ or /usr/lib/jvm/java-8-openjdk-amd64/jre

Thanks for your answer!

tested - but dont work :confused:

I had the same when I updated docker this weekend.
my solution was to remove the JAVA_HOME variable from the container settings… than it just worked.
did not (need to) bother about the corrected folder.

1 Like

How are you updating this installation? The normal way is to replace the old version Docker container with a newer version. Java is included in the container.

I have recreated it-