title: How do I force my Java application to use Java JRE 1.6 instead of 1.7?
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/222187/how-to-check-jre-version-prior-to-launch">How to check JRE version prior to launch?</a>  </p>
  </blockquote>
  
  
  
  <p>Many people want to know how to force their program to use a minimum version of a jre, but I would like my program to only run using java 6 and not java 7 (aka maximum of jre 1.6). The reason being that my program needs to use FTP, and java 7 has the dreaded FTP bug.</p>
  
  <p>Is there a way to easily make my application run using 1.6 if the user has 1.7 installed? </p>
  
  <p>Some of the options I have looked at are: launch4j </p>
  
  <p>I am not quite certain that it will solve my problem, other than perhaps bundling the entire jre with my program. Which I don't think is the most ideal solution.</p>
  
  <p>Can someone help guide me even down the theoretical path as to how this is generally solved/handled?</p>