title: Run Java task in ant using a different JRE
body: <p>I try to execute a java class using Ant.
  I used the task</p>
  
  <pre><code>&lt;java... &gt;
  </code></pre>
  
  <p>But when it runs I get this:</p>
  
  <pre><code>java.lang.UnsupportedClassVersionError: mypackage/myTest: Unsupported major.minor version 51.0
  at org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:194)
  ...
  </code></pre>
  
  <p>My ant is not running on Java 1.7. 
  I saw that for a javac task, you can specify <code>target</code> to set the java version.
  Is there a way to specify a specific JDK to be used with the java task?</p>