Reproduction via docker:
FROM archlinux:base
RUN pacman -Syuu --noconfirm jre21-openjdk-headless wget tar
WORKDIR /root
RUN wget https://github.com/varabyte/kobweb-cli/releases/download/v0.9.17/kobweb-0.9.17.tar; tar -xvf kobweb-0.9.17.tar; rm *.tar; mv kobweb-* /opt/kobweb
ENV PATH="$PATH:/opt/kobweb/bin"
java -version is available, but running the kobweb fails with:
ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
Please set the JAVA_HOME variable in your environment to match the
location of your Java installation.