java中出现java.lang.ExceptionInInitializerError

img

Caused by: java.lang.reflect.InaccessibleObjectException: Unable to make protected final java.lang.Class java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain) throws java.lang.ClassFormatError accessible: module java.base does not "opens java.lang" to unnamed module @3ad7e0ff

https://www.it1352.com/957980.html

最后是由于eclipse版本高了导致 不支持导入的架包版本
然后重新安装了一个低版本的eclipse