What's jEnv ?
jEnv is a command line tool to help you forget how to set the JAVA_HOME environment variable
jEnv is a command line tool to help you forget how to set the JAVA_HOME environment variable
$ git clone https://github.com/jenv/jenv.git ~/.jenv
$ brew install jenv
$ echo 'export PATH="$HOME/.jenv/bin:$PATH"' >> ~/.bash_profile $ echo 'eval "$(jenv init -)"' >> ~/.bash_profile
$ echo 'export PATH="$HOME/.jenv/bin:$PATH"' >> ~/.zshrc $ echo 'eval "$(jenv init -)"' >> ~/.zshrc
$ eval "$(jenv init -)" $ jenv enable-plugin export
$ exec $SHELL -l
$ 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
$ jenv versions system oracle64-1.6.0.39 * oracle64-1.7.0.11 (set by /Users/hikage/.jenv/version)
$ jenv global oracle64-1.6.0.39
$ jenv local oracle64-1.6.0.39
$ jenv shell oracle64-1.6.0.39
The project is Open Source and open to external contributions.
Do not hesitate to clone it and propose a pull request.
Did you find a bug? Feature missing in jenv? Create an issue!