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:
- JAVA Command Error: A JNI error has occurred, please check your installation and try again [Solved]
- [Solved] MAVEN-COMPILER-PLUGIN Compile Error: FATAL ERROR: UNABLE TO FIND PACKAGE JAVA.LANG IN CLASSPATH OR BOOTCLASSPATH
- [Solved] JAVA Run Error: Error: Could not find or load main class
- The CATALINA_HOME environment variable is not defined correctly
- [Solved] Springboot Error: invalid bound statement (not found)
- CentOS7.5 Install Python3.7 error: configure: error: no acceptable C compiler found in $PATH
- [olved] flume Install Error: Could not find or load main class org.apache.flume.tools.GetJavaProperty
- Eclipse: Troubleshooting of error reports packaged with Maven
- How to Solve IDEA Start Error: a jni error has occurred
- [Solved] java.lang.NoClassDefFoundError: com/sun/image/codec/jpeg/ImageFormatException (Upload Images Error)