Issue
enter image description hereI recently installed Apache Tomcat and am able to start Tomcat Server from command line but while starting from Eclipse I get these errors:
Server Tomcat v9.0 Server at localhost was unable to start within 45 seconds. If the server requires more time, try increasing the timeout in the server editor.
Error: Could not create the Java Virtual Machine. Error: A fatal exception has occurred. Program will exit. -Djava.endorsed.dirs=/Library/Tomcat/endorsed is not supported. Endorsed standards and standalone APIs in modular form will be supported via the concept of upgradeable modules.
I have java 10 and jdk jdk-10.0.1, Eclipse Java EE IDE for Web Developers.
Version: Oxygen.3a Release (4.7.3a)
I tried everything from these posts:
Eclipse "Server Locations" section disabled and need to change to use Tomcat installation
I could not find .snap file from this directory
.metadata.plugins\org.eclipse.core.resources to delete it
There is no temp file in this directory
.metadata.plugins\org.eclipse.wst.server.core it just has 2 temp folders
I also updated Eclipse Oxygen by launching link https://download.eclipse.org/webtools/repository/oxygen/ in Help to no avail.
Attaching some screens
I am held up testing my code so immediate help is appreciated.
Thanks!
Solution
This bug has already been fixed in Photon and newer: https://bugs.eclipse.org/533162
I'd also suggest a supported release of Java, like 11, instead of 10.
Answered By - nitind