Openhab-cli console gets JAVA_HOME is not valid

Dear all,

  • Platform information:

    • Hardware: VM on QNAP NAS
    • OS: UBUNTO LTS 18.04.3
    • Java Runtime Environment: ZULU 8 installed as part of openhabian
    • openHAB version: 2.5 stable
  • Issue of the topic: OpenHAB itself works perfectly. I do use KNX, SONOS, email bindings. Sitemmaps and fronttail look good. However when I want to start the openhab-cli console I do get the following error

“JAVA_HOME is not valid: /usr/lib/JVM/java-8-openjdk-amd64”

The JAVA_HOME path is set and as I mentioned OH works. But I wanted to use the console to set some debugging for a specific add-on I do have trouble with.

Is there another way to enable debug mode without the console in the meantime?

Thanks

You can set it in the config file. See Log4j2 Sample Config for a good example.

Hi Rich,

works like a charm, many thanks for pointing me in the right direction.

Quite case sensitive though :slight_smile:

cheers

You can assume that anything having to do with openHAB or Linux is going to be case sensitive.