Access is denied while compiling Java on Windows

后端 未结 7 978
星月不相逢
星月不相逢 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:10

    You don't have permission to write in the directory. You shouldn't put your source code in the bin directory of the JDK.

    Instead, add that bin directory to your PATH and create a work directory in your user home folder.

    See How to set the path in windows 7.

提交回复
热议问题