Openhab 5 anda Java Zulu 21.0.7 problem

Nanopi neo 3 (arm64)
Armbian 25.2.3
Java zulu21-jdk/stable 21.0.7-1 arm64
Openhab 5 Milestone 2 (but also milestone 1 and openhab 4.33)

Openhab doesnt start.

Apr 26 22:27:44 nanopineo3 systemd[1]: Started openhab.service - openHAB - empowering the smart home.
Apr 26 22:27:46 nanopineo3 karaf[1881]: Error occurred during initialization of boot layer
Apr 26 22:27:46 nanopineo3 karaf[1881]: java.lang.module.ResolutionException: Module java.compiler does not read a module that exports javax.tools
Apr 26 22:27:46 nanopineo3 systemd[1]: openhab.service: Main process exited, code=exited, status=1/FAILURE

Downgrading java to zulu21-jdk/stable 21.0.6-1 arm64 everything is fine.

The OH builds for Linux RasPi (openHabian) require a 64 bit OS and currently only Temurin is supported. So maybe you have the same issue??

Hi!
Same problem here:
Armbian os is always 64 bit (for cpu 64 bit of course)
and with Java zulu21-jdk/stable 21.0.6-1 arm64 was working fine!

Alex

1 Like

Where in the documentation is that mentioned? When I check Installation Overview | openHAB for the latest milestone it doesn’t mention Temurin at all.

The docs also mention

The 32-bit version of the JVM is recommended on ARM platforms such as the Raspberry Pi.

1 Like

“With that we recommend installing your distribution’s stable version of Java 21 from the openJDK package, when possible.”

Temurin is just for RaspiOS that, accorging to this link has no a stable version.
Zulu was often the Java runtime that was installed by armbianconfig when installing openhab on armbian…

I am using Debian 12 and the latest standard install openjdk is only 17 so I used zulu java version 21.0.5 and so far so good.

Same problem with Temurin 21.0.7 and OH 5 M2 running on raspberry bookworm

Is it a problem only with armbian linux distribution ?

I have the problem with Raspberry Pi OS (Debian).

My prod system running Temurin 21.0.7 and OH 4.3.5 works fine, but my test system running Temurin 21.0.7 and OH 5 M2 fails to start. Both systems are updated with the latest Raspberry Pi OS updates.

FWIW - I have both a production (rpi5) and a test (rpi4) OH5M2 running with Temurin 21.0.7 in docker containers for some time now. Started with OH5M1


i don’t think so. I installed zulu java that is not part of armbian…
Anyway downgrading zulu works fine.