64位服务器VM警告:JDK 13中不建议使用选项-Xverify:none和-noverify.是否可以从环境变量中删除-Xverify:none? [英] 64-Bit Server VM Warning: Options -Xverify:none and -noverify were deprecated in JDK 13. Safe to delete -Xverify:none from Environment Variables?

查看:150
本文介绍了64位服务器VM警告:JDK 13中不建议使用选项-Xverify:none和-noverify.是否可以从环境变量中删除-Xverify:none?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我运行任何程序时,都会显示以下消息.

The following message appears when I run any program.

Picked up _JAVA_OPTIONS: -Xverify:none
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.

许多相关问题都指向编辑自定义VM选项",但不适用于我.

A lot of related questions pointed to Editing Custom VM Options, but that did not apply to me.

我最终发现Java运行时正在我的环境变量中找到此设置,该变量的变量_JAVA_OPTIONS为-Xverify:none.

I eventually discovered that Java runtime is finding this setting in my Environment Variables, which has variable _JAVA_OPTIONS as -Xverify:none.

几乎可以肯定我不会添加此变量,那么在环境变量中还有其他方法可以创建它吗?从环境变量中删除而没有后果是安全的吗?

I am almost certain that I would not have added this variable, so is there any other way it could have been created in Environment Variables? Is it safe to delete from Environment Variables without consequence?

推荐答案

如果您不需要运行任何需要禁用启动验证的应用程序(不建议这样做,因为该验证可以保护用户免受恶意代码的影响,因此不建议这样做)安全删除它.

If you don't need to run any application that requires disabled startup verification (which is not recommended because the verification protects users from malicious code), it should be safe to delete it.

-Xverify和-noverfiy选项已被弃用,并且在以后的版本中似乎已删除,以保护用户免于运行恶意代码(如发行说明中所述: https://bugs.java.com/bugdatabase/view_bug.do?bug_id = JDK-8214719 ).在这些发行说明中,他们提到AppCDS是需要运行代码而无需启动验证的用户的替代选择.

The -Xverify and -noverfiy options were deprecated and seem to be removed in a future version to protect users from running malicious code (as described in the release notes: https://www.oracle.com/technetwork/java/javase/13all-relnotes-5461743.html and on the linked page in their bug tracking system https://bugs.java.com/bugdatabase/view_bug.do?bug_id=JDK-8214719). In these release notes they mention AppCDS as an alternative for users who need to run code without startup verification.

这篇关于64位服务器VM警告:JDK 13中不建议使用选项-Xverify:none和-noverify.是否可以从环境变量中删除-Xverify:none?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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