Ruslan B.
Ruslan B.

Reputation: 323

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

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

Any ideas how to solve it?

Upvotes: 22

Views: 19983

Answers (3)

mefryar
mefryar

Reputation: 361

For anyone else who comes here looking for how to silence this warning in Leiningen (Clojure), export LEIN_JVM_OPTS="-XX:TieredStopAtLevel=1" was recommended by Leinigen's maintainer and worked for me.

Setting this option means that only the C1 compiler is used. To learn more about the C1 and C2 compilers, see Working with the JIT Compiler and What exactly does -XX:-TieredCompilation do?

Upvotes: 6

Aura
Aura

Reputation: 780

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.

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.

enter image description here

Upvotes: 38

Gabriel Petrovay
Gabriel Petrovay

Reputation: 21944

In the Eclipse world this can also be controlled in two places:

  • either disable the Fast startup option in the Run/Debug configuration

    enter image description here

  • or remove the corresponding deprecated argument (-noverify) from the Spring Boot Fast Startup Java argument list:

    enter image description here

Upvotes: 4

Related Questions