Joined August 2013
·

Philipp Haußleiter

inspired consulting
·
Germany
·
·
·

Posted to Bash script to switch java version over 1 year ago

You can also add this to your .bash_profile

alias java6="export JAVA_HOME=`/usr/libexec/java_home -v1.6`"
alias java7="export JAVA_HOME=`/usr/libexec/java_home -v1.7`"

Sometimes you need older JVMs (e.g. you have to build Libs for App Server with only jvm 6 deployed.)

Achievements
447 Karma
85,451 Total ProTip Views