问题
idea启动tomcat报错:
Unrecognized option: --add-opens=java.base/java.lang=ALL-UNNAMED
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
Disconnected from server
解决方案
确认Tomcat版本和jdk版本是否匹配
本人用Tomcat 10 + jdk 1.8报错,换成Tomcat 9就可以了
所有评论(0)