When classloader is used to load resources, the following errors often occur:
Exception in thread "Main" Java. Lang. noclassdeffounderror: COM/tools/result
At java. Lang. Class. getdeclaredconstructors0 (native method)
At java. Lang. Class. privategetdeclaredconstructors (class. Java: 2328)
At java. Lang. Class. getconstructor0 (class. Java: 2640)
At java. Lang. Class. newinstance0 (class. Java: 321)
At java. Lang. Class. newinstance (class. Java: 303)
At com. Npower. dm. Tools. Backup. startup. Main (startup. Java: 78)
Solution:
Do not add useless classes in the same package
During packaging, you only need to call startup. Java instead of other classes,
Classloader will find it and load it after finding it
If the classloader is packed and loaded, it will be repeated, so the above situation occurs.
I found that what I said may not be clear. I found that it is also very knowledgeable to describe an event. I will strengthen it later!