cannot run a simple java code

前端 未结 5 1676
离开以前
离开以前 2021-01-22 11:45

I have downloaded a java developers kit for my 64bit windows 7, wrote down my code in the notepad, though the code is compiling from the command prompt and creating a .class fil

5条回答
  •  鱼传尺愫
    2021-01-22 12:42

    I used to get this error when I ran a Class file.

    Try doing: java NameOfClass

    You don't need the .java extension when running, but you need it for compiling. That was always the problem I used to have.

提交回复
热议问题