I work with multiple languages and code mostly in Python, Ruby, Java or scala. When working on a project, I would like to isolate the dependencies within the project and not to mess up with the system libraries. I will go through three virtual environments in this post which can be handy while working on a project and gives the flexibility to switch between different versions of the language.
virtualenv - for Python virtualenv is a tool to create isolated Python environments.
rbenv - for Ruby rbenv is a tool for simple ruby version management. Installation details can be found here
Gist of all commands:
jEnv - for Java jEnv is a command line tool to manage java environment.
Commands:
You can check the folder /System/Library/Java/JavaVirtualMachines/ for the available versions to add to jenv
Hope the above virtual environments are useful while setting up your projects.