[Solved] Fel:Cannot find the system Java compiler. Check that your class path includes tools.jar

SpringBoot project appears after deployment “java.lang.IllegalStateException: Cannot find the system Java compiler. Check that your class path includes tools.jar” Anomalies, as shown in the figure.

The reason is that “ToolProvider.getSystemJavaCompiler()” is empty

**Solution: ** Copy the %JAVA_HOME%\lib\tools.jar file to the %JAVA_HOME%\jre\lib\ directory

Similar Posts: