Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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.
like image 859
Marjan100 Avatar asked Apr 13 '18 14:04

Marjan100


2 Answers

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

like image 191
QA Specialist Avatar answered Oct 24 '22 02:10

QA Specialist


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)

like image 7
Alexander Bering Avatar answered Oct 24 '22 02:10

Alexander Bering