I just started using jenv , I followed a blog post that explained how to use jenv and configure several java versions on MacOSX. But the problem I ran into is setting up JAVA_HOME. When I switch the java environment using jenv , I want to make sure that the JAVA_HOME in my bash_profile also changes accordingly.
How can I do it?
I have the following mine ~/.bash_profile
if which jenv > /dev/null; then eval "$(jenv init -)"; fi
source share