Access is denied while compiling Java on Windows

后端 未结 7 967
星月不相逢
星月不相逢 2020-12-18 00:30

I created two java files: Pizza.Java and PizzaOrder.Java.

I tried compiling my code using javac in the command prompt like this:

         


        
7条回答
  •  天命终不由人
    2020-12-18 01:12

    It appears that you're trying to put your source files in the system C:\Program Fiels\Java\jdk1.7.0\bin directory. Try making your own directory for your source files (under your own home directory), instead of putting them in the system path. You probably don't have permissions to write to that directory (but I'm not sure how you got your source files there).

提交回复
热议问题