Update the Java runtime version on Mac OS X

sudo vim /etc/bashrc

jvm() {
  export JAVA_HOME=`/usr/libexec/java_home -v "$1"`
  java -version
}
 
jvm 1.7