While debugging our product, I already found a NoClassDefFoundError which is however weird to me- I noticed following output from the class loading log(by turning on -verbose:class):
[Loaded com.xxx.yyy.preferences.PreferencesMgr from file:/C:/Users/xxx/.gradle/caches/zzz.jar
PreferencesMgr is just the class that causes NoClassDefFoundError:
java.lang.NoClassDefFoundError: Could not initialize class com.xxx.yyy.preferences.PreferencesMgr
So it seems that jvm actually has already loaded the class sucessfully. Then why there is a NoClassDefFoundError? What possibilities?