How do I resolve ClassNotFoundException?

前端 未结 22 1497
后悔当初
后悔当初 2020-11-21 06:06

I am trying to run a Java application, but getting this error:

java.lang.ClassNotFoundException:

After the colon comes the location of the cla

22条回答
  •  逝去的感伤
    2020-11-21 06:25

    Go up to the top and remove the import statement if there is one, and re import the class. But if that isn't the case do a clean then build. Are you using Netbeans or Eclipse?

提交回复
热议问题