Skip to content

Instantly share code, notes, and snippets.

@sjordan1975
Last active June 6, 2019 03:26
Show Gist options
  • Select an option

  • Save sjordan1975/cca49515ca578ee58489a6503e0e5af6 to your computer and use it in GitHub Desktop.

Select an option

Save sjordan1975/cca49515ca578ee58489a6503e0e5af6 to your computer and use it in GitHub Desktop.
[jenv] Common jenv commands (https://github.com/jenv/jenv) #jenv
# 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