我有 Tomcat 8.0.53 和 Java 8 用于开发普通的 Spring 应用程序,但是当我运行服务器时实际上我遇到了这种类型的错误
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit. -Djava.endorsed.dirs=/Users/lalatendu/Software/apache-tomcat-8.0.52/endorsed is not supported. Endorsed standards and standalone APIs in modular form will be supported via the concept of upgradeable modules.
你能告诉我该怎么做吗?
系统配置-
- 操作系统:MacOS
- 内存:8GB
最佳答案
您应该使用适用于 Java 8 的 Apache Tomcat 9.x。请参阅 Java 8 的受支持版本。
关于java - 无法在 MacOS 中创建 Java 虚拟机,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50774424/