How to fix -Djava.endorsed.dirs not supported, that emerged after installing WTP in Eclipse?

感情迁移 提交于 2019-12-10 14:48:26

问题


I used tomcat for projects before, but this problem came after installing the WTP, and occurs when I try to run the application on server.

First comes a message, could not create Java Virtual Machine, then in the console occures this one:

-Djava.endorsed.dirs=C:\Program Files\Apache Software Foundation\Tomcat 9.0\endorsed is not supported. Endorsed standards and standalone APIs
in modular form will be supported via the concept of upgradeable modules.

回答1:


To fix this bug, you need to install/update the Eclipse Web Tools Platform (WTP) to version 3.9.4 or later.

  • Select "Help > Install new Software..."
  • Select or add following URL: http://download.eclipse.org/webtools/repository/oxygen
  • Check Web Tools Platform (WTP) 3.9.4
  • Select "Next" and follow instructions

(Bug was reported to Eclipse here: https://bugs.eclipse.org/bugs/show_bug.cgi?id=533162)




回答2:


Eclipse Oxygen.1a and newer releases contain changes to launch Tomcat properly with Java 9. You need to update your IDE.



来源:https://stackoverflow.com/questions/49819110/how-to-fix-djava-endorsed-dirs-not-supported-that-emerged-after-installing-wtp

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!