gpt4 book ai didi

java - 无法识别的 VM 选项 'UseCompressedStrings' - Intellij IDEA 无法启动

转载 作者:行者123 更新时间:2023-12-04 18:37:24 24 4
gpt4 key购买 nike

我添加了 UseCompressedStrings通过 IDEA 选择 V​​M 并将其关闭。现在,当我再次尝试启动 IDEA 时,它不会启动。我收到以下错误:

OpenJDK 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release.
Unrecognized VM option 'UseCompressedStrings'
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
我查了 idea64.vmoptionsidea.vmoptions删除这个无法识别的标志,但 UseCompressedStrings旗帜不在那里。我不知道如何从那里解决问题,所以我卸载并重新安装了 IDEA 和 java,希望错误会消失,但错误仍然存​​在。请注意,我在 64vmoptions 文件中也增加了堆大小,但这也消失了。谁能建议如何解决这个问题?

最佳答案

所以我最终在我的 ubuntu 中进行了全局搜索,如下所示:

grep ~ -rnw -e "UseCompressedStrings"
发现配置备份在:
/home/{username}/.config/JetBrains/IntelliJIdea2020.1/idea64.vmoptions
这就是为什么尽管重新安装了 java 和 intellij 这个无效选项对 jvm 仍然可见。所以我删除了那里的线路,一切正常。

关于java - 无法识别的 VM 选项 'UseCompressedStrings' - Intellij IDEA 无法启动,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/62995347/

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