Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 273
Ruslan B. Avatar asked Apr 14 '20 15:04

Ruslan B.


3 Answers

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

like image 154
Aura Avatar answered Nov 16 '22 07:11

Aura


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?

like image 5
mefryar Avatar answered Nov 16 '22 06:11

mefryar


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

like image 4
4 revs, 2 users 76% Avatar answered Nov 16 '22 07:11

4 revs, 2 users 76%