This repository contains a very simple function to set the default version of the JDK for Unix-like environments when several are installed.
It's known to work on OSX 10.10._.
To use, simply add the contents of .profile to ~\.profile or ~\.bashrc, depending on which configuration file you use.
This work is in the public domain. Copyright is waived. No warranty express or implied is offered.