Skip to content

Instantly share code, notes, and snippets.

@salomvary salomvary/add-all.sh
Created Dec 16, 2014

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

This comment has been minimized.

Copy link
Owner Author

salomvary commented Dec 16, 2014

jenv quickstart:

Global:

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

Per-project:

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.