Java compilation error: compilation failed

Alibaba cloud Q & A 2022-02-13 07:21:43 阅读数:196

java compilation error compilation failed

java: Compilation failed: internal java compiler error




Take the answer 1:

Hello! , If you are using idea, You can refer to the following steps for troubleshooting

1、 View the jdk(Ctrl+Alt+shift+S) File ->Project Structure->Project Settings ->Project image.png

2、 Check out the jdk(Ctrl+Alt+shift+S) File ->Project Structure->Project Settings -> Modules -> ( Project name to be modified ) -> Sources -> image.png

3、 see idea in Java To configure File ->Setting ->Build,Execution,Deployment -> Compiler -> Java Compiler image.png

If the above three steps are completed or failed

eliminate IDEA cache restart IDEA File->Invalidate Caches/Restart

Another situation is that the project is too large , You need to change the size of this heap The solution is as follows : stay setting-->Build,Execution,Deployment-->Compiler Find build process heap size(Mbytes):700 Change it to 1024( As the case may be )


copyright:author[Alibaba cloud Q & A],Please bring the original link to reprint, thank you. https://en.javamana.com/2022/02/202202130721413738.html