【问题标题】:Java HotSpot(TM) 64-Bit Server VM warning Options -Xverify:none and -noverify were deprecated in JDK 13 and will likely be removed in a future release [duplicate]Java HotSpot(TM) 64 位服务器 VM 警告选项 -Xverify:none 和 -noverify 在 JDK 13 中已弃用,并且可能会在未来的版本中删除 [重复]
【发布时间】:2020-09-01 21:34:58
【问题描述】:

在 Eclipse 中,我在运行我的项目时遇到了这个错误:

Java HotSpot(TM) 64-Bit Server VM warning: Options -Xverify:none and -noverify were deprecated in JDK 13 and will likely be removed in a future release.

Error Screenshot

我在安装 JDK 14 后开始收到此错误。

【问题讨论】:

  • -Xverify:none / -noverify 选项很危险,should never be used。当字节码验证关闭时,JVM 容易受到无效字节码的攻击,并且可能很容易崩溃,例如12。该消息警告说,这些选项自 JDK 13 起已弃用。只需从 JVM 命令行中删除它们即可。
  • @apangin 这应该是一个答案,而不是评论。
  • 我没有使用 -Xverify:none 或 -noverify,运行 eclipse 时出现此错误,我最近使用 JDK14 安装了 eclipse 版本:2020-06 (4.16.0),我收到此错误在运行项目时。
  • 您收到警告错误。它们只是打印在彼此下方。巧合并不意味着因果关系。您的应用程序未运行,因为尚未找到主类。但是,对于这两个问题,您必须检查并修复运行配置。

标签: java eclipse jvm-hotspot


【解决方案1】:

如 cmets 中所述,您会收到警告和错误。

警告:

OpenJDK 64-Bit Server VM warning: Options -Xverify:none and -noverify were deprecated in JDK 13 and will likely be removed in a future release

这可以通过禁用应用程序的“快速启动”复选框来解决。详情请见this answer

错误:

Error: Could not find or load main class com.cgs.stestweb.SpringBootBasicsApplication
Caused by: java.lang.ClassNotFoundException: com.cgs.stestweb.SpringBootBasicsApplication

要解决此问题,您需要更正配置。

【讨论】:

    猜你喜欢
    • 2020-07-27
    • 2020-05-23
    • 2014-05-03
    • 1970-01-01
    • 2015-07-28
    • 1970-01-01
    • 2018-06-07
    • 2019-04-28
    相关资源
    最近更新 更多