console报错:"-Djava.endorsed.dirs=D:\apache-tomcat-9.0.7\endorsed is not supported. Endorsed standards and standalone APIs in modular form will be supported via the concept of upgradeable modul"的原因及解决办法

I used eclipse to create a web project, and when I ran the project with the Tomcat server, I found that it first gave a warning: "Error:Could not create the Java Virtual Machine.Errpr:A fatal exception has occurred.Program will exit."

 

然后在console中报错:“-Djava.endorsed.dirs=D:\working\apache-tomcat-9.0.7\endorsed is not supported. Endorsed standards and standalone APIs

in modular form will be supported via the concept of upgradeable modules.”

 

Reason: The jdk version of Java I was using at the time was 10.0, and the Tomcat version was 9.0.7. I tried a lot of methods and couldn't solve it, and I accidentally saw the problem that the jdk version and the Tomcat version did not match.

Solution: I tried to use the 9.0.4 version of jdk, still using the 9.0.7 version of Tomcat, and everything was normal when I ran the project again.

Good luck!

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324499142&siteId=291194637