我在Mac OS平台上安装了Tomcat 7.0.82,并尝试运行Web应用程序。但是,我得到了:
/Users/nazar/Documents/Tomcat/apache-tomcat-7.0.82/bin/catalina.sh run
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
-Djava.endorsed.dirs=/Users/nlelyak/Documents/Tomcat/apache-tomcat-7.0.82/endorsed is not supported. Endorsed standards and standalone APIs
in modular form will be supported via the concept of upgradeable modules.
Disconnected from server
我在包含内容的bin文件夹中创建了setenv.sh
:
CATALINA_OPTS =“ - Xms512M -Xmx1024M”
它没有解决问题。
Java版本如下:
➜ bin java -version
java version "1.8.0_144"
Java(TM) SE Runtime Environment (build 1.8.0_144-b01)
Java HotSpot(TM) 64-Bit Server VM (build 25.144-b01, mixed mode)
如何解决这个问题?
答案 0 :(得分:0)
我尝试了增加版本的Tomcat \\\r\\\n
。
现在一切正常。
但是,不知道为什么7它失败了。