title: Running two versions of java at same time
body: <p>I have to use two versions of java (1.6.21 and 1.7).My company's code is dependent on 1.6_21 and we are planning to use artifactory. We are testing artifactory locally.But artifactory needs java 1.7 or higher.I want my default java home to point to 1.6_21 and for artifactory it should be 1.7.</p>
  
  <p>But the problem is as soon as I install java 7,it sets itself as default.I have read many posts that explain how to manage two versions of java,but my artifactory and eclipse have to run at same time.</p>
  
  <p>Please help!!   </p>