title: Generate jar for java 6 target using java 8 with ant
body: <p>I am using java 8 with ant to generate the jar file for a library I have written. There are no lambdas being used in the project and I want to generate a jar compatible with java 6.</p>
  
  <p>I've edited the following lines in my build file </p>
  
  <pre><code>&lt;property name="target" value="1.8"/&gt;
  &lt;property name="source" value="1.8"/&gt;
  </code></pre>
  
  <p>an replaced it with</p>
  
  <pre><code>&lt;property name="target" value="1.6"/&gt;
  &lt;property name="source" value="1.6"/&gt;
  </code></pre>
  
  <p>to rebuild and generate the jar. It throws a warning telling  <code>warning: [options] bootstrap class path not set in conjunction with -source 1.6</code></p>
  
  <p>Is this the right way to generate the compatible jar using java 8 ? I am curious about how this really works.</p>