OpenJDK 64位服务器VM警告:JDK 13中不建议使用选项-Xverify:none和-noverify,并且在将来的版本中可能会将其删除 [英] 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

查看:55
本文介绍了OpenJDK 64位服务器VM警告:JDK 13中不建议使用选项-Xverify:none和-noverify,并且在将来的版本中可能会将其删除的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Java 14启动一个新的Spring 5项目.它已编译,但给了我警告:

I'm starting a new Spring 5 project with Java 14. It compiled, but gave me a warning:

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

有什么办法解决吗?

推荐答案

这只是一个警告,因为JVM的验证比以前快得多.如果您真的不愿意看到它,则可以从JVM选项中删除 -Xverify:none -noverify .

It's just a warning because JVM's verifies are much faster then before. If you are really not willing to see that, you could just remove -Xverify:none and -noverify from your JVM options.

在IDEA中,您可以这样操作:在编辑配置"中,选择您的应用,然后取消选中启用启动优化"在右侧面板中.然后启动您的应用程序,警告将消失,但启动优化被禁用.

In IDEA you can do that like this: In "edit configuration", select your application, and uncheck "Enable launch optimization" in the right panel. Then start your application, the warning will be disappeared but launch optimization is disabled.

这篇关于OpenJDK 64位服务器VM警告:JDK 13中不建议使用选项-Xverify:none和-noverify,并且在将来的版本中可能会将其删除的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆