【发布时间】:2018-02-05 15:05:53
【问题描述】:
由于 catalina.sh 中的默认“java.endorsed.dirs”选项,无法使用 java 9 启动基于 tomcat 的应用程序。
-Djava.endorsed.dirs=/usr/local/share/tomcat/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.
有解决办法吗?
【问题讨论】:
-
好吧,寻找this SO question 的解决方案,我已经意识到并提出了another SO,这一切都归结为使用java 9,出于适应性原因您需要使用Tomcat 9。简而言之,尝试使用
apache-tomcat-9.0.0.M26和jdk-9+181执行您的应用程序以找出确切的故障。
标签: java tomcat tomcat7 java-9