- Prerequisites - Apple's Java (https://support.apple.com/downloads/java), brew (http://brew.sh/) and brew-cask (http://caskroom.io/)
- Install Java - brew cask install java
- Install jenv - brew install jenv & echo 'if which jenv > /dev/null; then eval "$(jenv init -)"; fi' >> ~/.bash_profile
- Configure jenv - jenv add [JDK Folder], e.g., jenv add /Library/Java/JavaVirtualMachines/jdk1.8.0_45.jdk/Contents/Home
- Configure per Folder - jenv local [Java Version], e.g., jenv local oracle64-1.8.0.45
Saturday, July 4, 2015
Want to have different Java versions on the same Mac: jenv to the rescue
With the introduction of Play Framework 2.4.x, Play doesn't support Java 1.6 anymore. Because some applications running on the Mac require to run only with Java 1.6, there need to be some kind of a hybrid environment. jenv configuration utility to the rescue.
Subscribe to:
Comments (Atom)