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

4

13

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.
Coray answered 13/4, 2018 at 14:18 Comment(4)
Update to the current released version.Blayze
What should I update?Coray
WTP. Eclipse. If you are not running the latest Oxygen release, you need to be.Blayze
Tnx. I will do that.Coray
F
7

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

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

Florilegium answered 24/5, 2018 at 8:42 Comment(0)
S
4

I've got the same error in Eclipse running Tomcat 9 on JDK 13. I just removed the -Djava.endorsed.dirs=C:\.... from the VM arguments then restart Tomcat again.

Java VM Error

Click on the Open Launch Configuration link from the Overview window Overview tab

Then remove the -Djava.endorsed line

Remove Djava line

Sewellel answered 22/1, 2020 at 22:39 Comment(0)
B
0

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

Blayze answered 19/4, 2018 at 12:32 Comment(0)
E
0

I was facing same issue but I can resolve it by updating eclipse. click on helps -> check for updates -> and update the eclipse to latest releases. after update restart eclipse and check.

Excreta answered 25/6, 2023 at 18:29 Comment(1)
This does not really answer the question. If you have a different question, you can ask it by clicking Ask Question. To get notified when this question gets new answers, you can follow this question. Once you have enough reputation, you can also add a bounty to draw more attention to this question. - From ReviewProclaim

© 2022 - 2024 — McMap. All rights reserved.