title: How should I upgrade my Java compiler
body: <p>When I run <code>$ javac Simulator.java</code> then I get the following warning:</p>
  
  <p><code>warning: ./particle_simulator/Atom.class: major version 51 is newer than 50, the highest major version supported by this compiler.</code></p>
  
  <p>I don't know why I suddenly get this warning as I haven't made substantial changes to my code.  Nevertheless, how do I upgrade my Java compiler?</p>
  
  <p>I'm running Mac OSX 10.7.5 and my Java version is below:</p>
  
  <pre><code>java version "1.6.0_65"
  Java(TM) SE Runtime Environment (build 1.6.0_65-b14-462-11M4609)
  Java HotSpot(TM) 64-Bit Server VM (build 20.65-b04-462, mixed mode)
  </code></pre>