Skip to content

Instantly share code, notes, and snippets.

@salomvary salomvary/
Created Dec 16, 2014

What would you like to do?
Add all jvms to jenv on Mac
/usr/libexec/java_home -V 2>&1 1>/dev/null |
tail -n +2 |
awk -F $'\t' '{ print $3 }' |
xargs -n 1 jenv add

This comment has been minimized.

Copy link
Owner Author

salomvary commented Dec 16, 2014

jenv quickstart:


brew update
brew install jenv
echo 'eval "$(jenv init -)"' >> ~/.bash_profile


jenv local 1.8 # only once per project
./sbt # or whatever java command
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.