How do I resolve ClassNotFoundException?

前端 未结 22 2200
后悔当初
后悔当初 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:48

    Put all the code in try block then catch exception in a catch block

    try
    {
        // code
    }
    catch(ClassNotFoundException e1)
    {
        e1.getmessage();
    }
    

提交回复
热议问题