Last active
June 6, 2019 03:26
-
-
Save sjordan1975/cca49515ca578ee58489a6503e0e5af6 to your computer and use it in GitHub Desktop.
[jenv] Common jenv commands (https://github.com/jenv/jenv) #jenv
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Use jenv add to inform jenv where your Java environment is located. jenv does not, by itself, install Java; for example: | |
| $>jenv add /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home | |
| oracle64-1.6.0.39 added | |
| $>jenv add /Library/Java/JavaVirtualMachines/jdk17011.jdk/Contents/Home | |
| oracle64-1.7.0.11 added | |
| # List java versions under management | |
| $>jenv versions | |
| # Configure global version | |
| $>jenv global <java-version> | |
| # Configure local version (per directory) | |
| $>jenv local <java-version> | |
| # Configure shell instance version | |
| $>jenv shell <java-version> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment