How do I resolve ClassNotFoundException?

2020-01-22 11:30发布

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

java.lang.ClassNotFoundException:

After the colon comes the location of the class that is missing. However, I know that that location does not exist since the class is located elsewhere. How can I update the path of that class? Does it have something to do with the class path?

19条回答
迷人小祖宗
2楼-- · 2020-01-22 12:04

I ran into this as well and tried all of the other solutions. I did not have the .class file in my HTML folder, I only had the .java file. Once I added the .class file the program worked fine.

查看更多
登录 后发表回答