title: Access is denied while compiling Java on Windows
body: <p>I created two java files: <code>Pizza.Java</code> and <code>PizzaOrder.Java</code>.</p>
  
  <p>I tried compiling my code using javac in the command prompt like this:</p>
  
  <pre><code>javac pizzaorder.java
  </code></pre>
  
  <p><strong>I am getting access is denied error:</strong></p>
  
  <pre><code>C:\Users\Meutex&gt;cd\
  
  C:\&gt;cd "Program Files\Java\jdk1.7.0\bin"
  
  C:\Program Files\Java\jdk1.7.0\bin&gt;javac PizzaOrder.java
  PizzaOrder.java:23: error: cannot find symbol
                  Pizza order = new Pizza ();
                  ^
    symbol:   class Pizza
    location: class PizzaOrder
  PizzaOrder.java:23: error: cannot find symbol
                  Pizza order = new Pizza ();
                                    ^
    symbol:   class Pizza
    location: class PizzaOrder
  2 errors
  
  C:\Program Files\Java\jdk1.7.0\bin&gt;javac Pizza.java
  Pizza.java:11: error: error while writing Pizza: Pizza.class (Access is denied)
  public class Pizza {
         ^
  1 error
  
  C:\Program Files\Java\jdk1.7.0\bin&gt;javac Pizza.java
  </code></pre>
  
  <p>What am I doing to cause this error?</p>