Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The Kobweb CLI complains that Java is not available even when Java is available #18

Open
CLOVIS-AI opened this issue Nov 6, 2024 · 1 comment

Comments

@CLOVIS-AI
Copy link

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.
@CLOVIS-AI
Copy link
Author

Workaround: add

ENV JAVA_HOME="/usr/lib/jvm/default"

Still, it would be better UX if Kobweb could find the JDK autonomously.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant