How do I resolve ClassNotFoundException?

前端 未结 22 1510
后悔当初
后悔当初 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条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-11-21 06:25

    Your classpath is broken (which is a very common problem in the Java world).

    Depending on how you start your application, you need to revise the argument to -cp, your Class-Path entry in MANIFEST.MF or your disk layout.

提交回复
热议问题