这个错误,网上找了好多解决办法,都不正确,最后在Stack Overflow找到了原因:
重点是下面这句话:
If an exception is propagating out of the constructor of the class or a static initializer, then you also get java.lang.NoClassDefFoundError: Could not initialize class ...
这个错误,网上找了好多解决办法,都不正确,最后在Stack Overflow找到了原因:
重点是下面这句话:
If an exception is propagating out of the constructor of the class or a static initializer, then you also get java.lang.NoClassDefFoundError: Could not initialize class ...