title: ant Unsupported major.minor version 52.0
body: <p>This is driving me nuts.<br>
  When running any ant command (even <code>ant -version</code>), I always get the following error on Mac OSX:  </p>
  
  <p>Exception in thread "main" java.lang.UnsupportedClassVersionError: org/apache/tools/ant/launch/Launcher : Unsupported major.minor version 52.0</p>
  
  <p>I removed and re-installed ant entirely, and still get the same error.  </p>
  
  <p><a href="https://i.stack.imgur.com/tYd8y.png" rel="noreferrer"><img src="https://i.stack.imgur.com/tYd8y.png" alt="enter image description here"></a></p>
  
  <p>For our company we have to run Java7 to run the command, so I created an alias.  </p>
  
  <p>This used to work, I'm not sure what changed.  </p>