Unable to make protected final java.lang.Class java.lang.ClassLoader.

created at 08-03-2021 views: 3568

error message

Unable to make protected final java.lang.Class java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int) throws java.lang.ClassFormatError accessible: module java.base does not “opens java.lang” to unnamed module @49cb5030

It is estimated that you also have this error screenshot:

error message window

solution

If your pop-up window keeps popping up, cancel this first and automatically compile:

 automatically compile

Pay attention, it's not the problem of clean or not, it's your eclipse.ini configuration file!

You follow the installation tutorial on the Internet as normal, and here you pay attention: my frame is ready.

install successful

It is prompting us to add parameters:
-vmargs
We first open the eclipse configuration file

 eclipse configuration file

Just add the parameter in the last line:

add vmargs parameter

-vmargs -javaagent:D:\software\Eclipse\Eclipse2021\eclipse\lombok.jar

Perfectly solve the problem of not compiling!

Perfectly solve the problem of not compiling!

created at:08-03-2021
edited at: 06-04-2022: