title: Java Access Denied
body: <pre><code>C:\Program Files (x86)\Java\jdk1.6.0_17\bin&gt;javac VendingMachine.java
  VendingMachine.java:27: error while writing VendingMachine: VendingMachine.class
   (Access is denied)
  public class VendingMachine
         ^
  1 error
  </code></pre>
  
  <p>Here is the code from my editior from line 27 to 39:</p>
  
  <pre><code>public class VendingMachine /*This is line 27*/
  {
     private int itemPrice;
  
     private int currentBalance;
  
     private int totalCollected;
  
     public VendingMachine(int itemCost)
     {
         itemPrice = itemCost;
  
     } /*line 39*/
  </code></pre>
  
  <p>I am thinking my problem might be related to Win7 Prof:
  (Access is denied)</p>
  
  <p>How do I resolve this or what do I need to be doing or reading to get this to work?</p>
  
  <p>Thank you for not flaming.</p>
  
  <p>I just changed the folder options such that I am the given full (Access...), now I just have to figure out why I am not getting any output, when running javac VendingMachine.java
  I guess a new question  is in order.</p>