Search code examples
javaenvironment-variablessystem-propertiesjavaoptions

64-Bit Server VM Warning: Options -Xverify:none and -noverify were deprecated in JDK 13. Safe to delete -Xverify:none from Environment Variables?


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.

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

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?


Solution

  • 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.

    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.