With OpenJDK, there is a need to have multiple JDK versions installed as there are many releases that are used by different projects. More and more projects are supporting multiple Java versions as well. This problem was not as prevalent in the Java ecosystem but the Ruby ecosystem had it long back. There are multiple tools to manage Ruby versions. The approach of rbenv is probably the simplest. On the same lines, we have jEnv for Java.
To setup jEnv, the steps are simple
To setup jEnv, the steps are simple
- Install jEnv (
brew install jenv)
- Setup shell profile (
~/.bash_profile
) - Install Java
- Set local or shell version of Java (
jenv local openjdk64-1.8.0.192
)
export PATH="$HOME/.jenv/bin:$PATH"
eval "$(jenv init -)"
No comments:
Post a Comment