1. 程式人生 > >-Djava.endorsed.dirs=D:\tomcat\apache-tomcat-9.0.8\endorsed is not supported. Endorsed standards and

-Djava.endorsed.dirs=D:\tomcat\apache-tomcat-9.0.8\endorsed is not supported. Endorsed standards and

在eclipse裡啟動tomcat時控制檯報錯:-Djava.endorsed.dirs=D:\tomcat\apache-tomcat-9.0.8\endorsed is not supported. Endorsed standards and standalone APIs in

解決方案:

在Eclipse的Run -> Run Configurations的介面裡 

有一個設定引數裡Arguments頁面裡的VM arguments的引數裡面把最後的有-Djava.endorsed.dirs="D:\java\tomcat\apache-tomcat-9.0.10\endorsed"的引數刪除,然後點選Apply,再點Run就行了。