作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我添加了 UseCompressedStrings
通过 IDEA 选择 VM 并将其关闭。现在,当我再次尝试启动 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.vmoptions
和
idea.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/
我添加了 UseCompressedStrings通过 IDEA 选择 VM 并将其关闭。现在,当我再次尝试启动 IDEA 时,它不会启动。我收到以下错误: OpenJDK 64-Bit Serv
我正在阅读 Java HotSpot VM Options .我看到了一些有趣的 VM 开关,主要与字符串有关——这对我来说很有值(value),因为我的应用程序正在执行一些繁重的字符串操作。它们是:
我是一名优秀的程序员,十分优秀!