Skip to content

fix: put jenv on PATH in install_java before using it#46

Merged
bushidocodes merged 1 commit into
masterfrom
fix/install-java-jenv-path
Jun 16, 2026
Merged

fix: put jenv on PATH in install_java before using it#46
bushidocodes merged 1 commit into
masterfrom
fix/install-java-jenv-path

Conversation

@bushidocodes

Copy link
Copy Markdown
Owner

Problem

install_java clones jenv to ~/.jenv (via make ~/.jenv) but never adds ~/.jenv/bin to PATH in the running script, so the subsequent calls fail:

install.sh: line 129: jenv: command not found
install.sh: line 130: jenv: command not found

The JDK + Maven still install via apt, but jenv is never configured — no version registered, no global set. ~/.jenv/bin only reaches PATH later via init_java in a new shell.

Fix

make ~/.jenv

export PATH="$HOME/.jenv/bin:$PATH"
eval "$(jenv init -)"
jenv add /usr/lib/jvm/java-17-openjdk-amd64
jenv global 17.0

Found by running the full install.sh in a fresh ubuntu:24.04 container (#42).

Fixes #42

🤖 Generated with Claude Code

install_java cloned jenv to ~/.jenv via `make ~/.jenv` but never added
~/.jenv/bin to PATH within the script, so the following calls failed:

    install.sh: line 129: jenv: command not found
    install.sh: line 130: jenv: command not found

The JDK + Maven still installed via apt, but jenv was never configured
(no version registered, no global set). Export ~/.jenv/bin and run
`jenv init` before `jenv add`/`jenv global`. Found by running install.sh
in a fresh ubuntu:24.04 container.

Fixes #42

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@bushidocodes bushidocodes merged commit bec7af3 into master Jun 16, 2026
2 checks passed
@bushidocodes bushidocodes deleted the fix/install-java-jenv-path branch June 16, 2026 01:24
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

Successfully merging this pull request may close these issues.

install_java: jenv not on PATH within the script, so jenv add/global fail

1 participant