gpt4 book ai didi

java - 错误: Could not create the Java Virtual Machine

转载 作者:行者123 更新时间:2023-12-01 09:00:55 27 4
gpt4 key购买 nike

我尝试运行 ant 项目,但出现以下错误

Unrecognized option: -classic Error: Could not create the Java Virtual Machine. Error: A fatal exception has occurred. Program will exit. Press any key to continue . . .

run.bat 包含以下设置

set JAVA_OPTS=%JAVA_OPTS% -Xms3072m -Xmx3072m -Djava.util.logging.config.file=%JBOSS_HOME%\server\all\conf\logging.properties

set JAVA_OPTS=%JAVA_OPTS% -XX:+CMSClassUnloadingEnabled -XX:+CMSPermGenSweepingEnabled -XX:MaxPermSize=2048M


set JAVA_OPTS=-classic -Xdebug -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=n %JAVA_OPTS%

系统配置:

  • 操作系统 - Window 7
  • 内存 - 8GB

最佳答案

JAVA_OPTS 变量中的 -classic 选项已在 Java 1.4 中删除。 Java 1.3 中使用该选项来调用 Java 1.2 经典 VM。

因此,如果您使用的是最新版本的 Java,则需要从 JAVA_OPTS 变量中删除该选项。

关于java - 错误: Could not create the Java Virtual Machine,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41671190/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com