Generally, the jdk and jvm versions are inconsistent. You can enter java -version and javac -version under the cmd command to see if the versions are consistent. If they are inconsistent, you need to change JAVA_HOME to ensure consistency.
https://blog.csdn.net/qq_19427739/article/details/51095463