Skip to content
Barnesly edited this page Dec 3, 2025 · 8 revisions

Trouble Shooting

Java binary in path is not in the jenv shims.

If, when running jenv doctor, you see

[ERROR]	Java binary in path is not in the jenv shims.
[ERROR]	Please check your path, or try using /path/to/java/home is not a valid path to java installation.

make sure export JENV_ROOT=/usr/local/opt/jenv appears before if which jenv > /dev/null; then eval "$(jenv init -)"; fi in .bash_profile.

Git Bash on Windows

.jenv/bin/jenv: line 1: ../libexec/jenv: No such file or directory

This is related to symlinks the next issue.

  1. Start by enabling symlinks issue below.
  2. After symlinks has been enabled. In Git Bash navigate to jenv location. Default is ~/.jenv
  3. Enable symlinks for the repository git config core.symlinks true
  4. Do a new checkout of bin/jenv run git checkout -- bin/jenv
    Your problems should be solved.

Symlinks aren't working https://stackoverflow.com/a/40914277

It seems that it becomes a full copy instead of a symlink ~/.jenv/versions should have a size of 0, but without symlinks this grows fast since each alias is a full copy of the JVM.

  1. You need to run Git Bash as administrator (can be configure to always run as administrator under Properties -> Compatibility, make sure you know what this means).
  2. In Git Bash run export MSYS=winsymlinks:nativestrict this could be added to ~/.bash_profile

Clone this wiki locally