C:\Program Files (x86)\Java\jdk1.6.0_17\bin>javac VendingMachine.java
VendingMachine.java:27: error while writing VendingMachine: VendingMachine.class
(Access is denied)
public class VendingMachine
^
1 error
Here is the code from my editor from lines 27 through 39:
public class VendingMachine
{
private int itemPrice;
private int currentBalance;
private int totalCollected;
public VendingMachine(int itemCost)
{
itemPrice = itemCost;
}
I think my problem may be related to Win7 Prof: (Access denied)
How do I solve this, or what do I need to do or read to make it work?
Thank you for not burning.
I just changed the settings of the folder so that I was specified full (access ...), now I just need to find out why I am not getting any output when running javac VendingMachine.java I assume that the new question is in order.
source
share