You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
At this point, I renamed .jenv-shim to see if that would fix the problem. jenv rehash did not report an error, and java --version and mvn install (with the maven plugin installed) seem to work now.
So I think I resolved the problem, but it required moving around files that feel like they are internal files that I shouldn't be touching and guessing at what the solution is.
I think at a minimum, jenv rehash needs to be modified to work when the shim file from an older version is present.
If there is a brew post-install hook that you control, running (the fixed) jenv rehash from that would also be a good idea. I am not familiar with the details of how brew installs things, so I have no idea how reasonable the post-install hook is.
The text was updated successfully, but these errors were encountered:
I recently did a
brew upgrade
, which updatedjenv
from 0.5.2 to 0.5.6. This caused most of my java-related command to fail withBased on
jenv help
, it appeared thatjenv rehash
might be what I wanted to do, but that also failed:At this point, I renamed .jenv-shim to see if that would fix the problem.
jenv rehash
did not report an error, andjava --version
andmvn install
(with the maven plugin installed) seem to work now.So I think I resolved the problem, but it required moving around files that feel like they are internal files that I shouldn't be touching and guessing at what the solution is.
I think at a minimum,
jenv rehash
needs to be modified to work when the shim file from an older version is present.If there is a brew post-install hook that you control, running (the fixed)
jenv rehash
from that would also be a good idea. I am not familiar with the details of how brew installs things, so I have no idea how reasonable the post-install hook is.The text was updated successfully, but these errors were encountered: