Compilation failed: internal java compiler error

1. Modify the compiler version

It may also be that the project is too large, and the heap size of the compilation process needs to be increased: (I am reporting a compilation error because of this)

In setting-->Build,Execution,Deployment-->Compiler, find the build process heap size(Mbytes): 700 is changed to 1024. As shown in the figure:

Also need to pay attention to the pom file, after the configuration is 1.7, every time maven refreshes, the compiler will automatically become 1.7, resulting in inexplicable compilation errors. As shown in the figure:

 

2. Modify the project jdk version

 

4. Rebuild the project, clear the cache, etc.

 

Guess you like

Origin blog.csdn.net/sumengnan/article/details/113565738