【发布时间】:2018-05-29 11:35:37
【问题描述】:
最初,我在 Tomcat 9 中安装了 jdk10。我无法运行任何动态 Web 项目,出现以下错误:
-Djava.endorsed.dirs=/usr/local/src/apache-tomcat-8.5.31/endorsed is not supported. Endorsed standards and standalone APIs
in modular form will be supported via the concept of upgradeable modules.
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
经过一番研究,似乎jdk9/10和Tomcat 9有些不兼容。
所以我下载并安装了 jre8 和 Tomcat 8,但由于同样的原因我仍然无法运行该应用程序。
Eclipse Preferences > Java > Compiler 已经指向 1.8
我清理了项目并创建了一个新项目,以确保新设置适用于新项目,但同样的错误发生了。而且我不知道为什么控制台上仍然显示 jdk10。
我的机器运行 Antergos Linux 和 Oxygen Eclipse 4.7.3
任何意见都非常感谢,谢谢!
【问题讨论】:
-
这里也有同样的问题,请问您在其他地方找到帮助了吗?
标签: java tomcat jakarta-ee