一个class有static block,然后那个static block有exeption吐出,所以,该class没有被注册,或者任何class没有被注册,却要被调用,调用上就出上面的错。

解决方案 »

  1.   

    啊,什么叫class没有被注册啊,?
      

  2.   

    i don't know? study!!!!!
      

  3.   

    在我的机器上编意的,运行成功,
    到其他机器就不行了,(jdk是同一个版本,我想不需要重新编意)但是去出现如上错误!!
      

  4.   

    Register to the JVM. A class fails to be initialized.
      

  5.   

    This usually happens after you've caught a ExceptionInInitializerError and forces to access the class which has not been able to be initialized. i call it registering to the VM.
      

  6.   

    你一定有什么地方catch了throwable.改成catch Exception再跑一遍,就应该有Initialize Error吐出来,就可以看到问题在哪里了。