javac: file not found: first.java Usage: javac

前端 未结 14 1169
醉梦人生
醉梦人生 2020-12-10 06:42

I have a filename named \"first.java\" saved on my desktop in notepad++. When I run the cmd command \"javac first.java\" it gives me this error.

javac: file          


        
14条回答
  •  感动是毒
    2020-12-10 06:48

    If this is the problem then go to the place where the javac is present and then type

    1. notepad Yourfilename.java
    2. it will ask for creation of the file
    3. say yes and copy the code from your previous source file to this file
    4. now execute the cmd------>javac Yourfilename.java

    It will work for sure.

提交回复
热议问题