I created two java files: Pizza.Java
and PizzaOrder.Java
.
I tried compiling my code using javac in the command prompt like this:
The Access Denied error is most likely due to the fact that you're trying to compile this program within the jdk directory, which is inside \Program Files
, which is NOT universally writeable by users. You should be doing your coding elsewhere (perhaps in your My Documents
directory, or at least somewhere you've got write permissions).