1

In Eclipse, I got this error running my project:

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.

Error Screenshot

I started getting this error after installing JDK 14.

Jan Nielsen
  • 10,892
  • 14
  • 65
  • 119
MurliSwami
  • 29
  • 4
  • 4
    `-Xverify:none` / `-noverify` options are dangerous and [should never be used](https://blogs.oracle.com/buck/never-disable-bytecode-verification-in-a-production-system). When bytecode verification is off, JVM becomes vulnerable to invalid bytecode, and may easily crash, e.g. [1](https://stackoverflow.com/questions/40321205/jvm-crash-problematic-frame-canonicalizerdo-if), [2](https://stackoverflow.com/questions/58855063/jvm-exception-access-violation-crash-in-spring-boot-application). The message warns that these options are deprecated since JDK 13. Just remove them from the JVM command line. – apangin Sep 01 '20 at 21:52
  • 1
    @apangin That should be an answer, not a comment. – Jim Garrison Sep 01 '20 at 22:06
  • I didn't use -Xverify:none or -noverify, I got this error while running eclipse, I recently installed eclipse Version: 2020-06 (4.16.0) with JDK14 and I get this error while running a project. – MurliSwami Sep 02 '20 at 05:52
  • That message is only output if you are specifying the option. Check the 'Run > Run Configuration' for your program - look at the Arguments tab. – greg-449 Sep 02 '20 at 06:42
  • 3
    You got a warning *and* an error. They are just printed beneath each other. Coincidence does not imply causality. Your application does not run because the main class has not been found. But well, for both problems, you have to check and fix the run configuration. – Holger Sep 02 '20 at 07:15
  • 1
    Does this answer your question? [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](https://stackoverflow.com/questions/61211695/openjdk-64-bit-server-vm-warning-options-xverifynone-and-noverify-were-depre) – Polygnome Sep 29 '20 at 16:05

1 Answers1

1

As noted in comments, you've got a warning and an error.

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

This can be addressed by disabling the application's "Fast startup" checkbox. See this answer for details.

Error:

Error: Could not find or load main class com.cgs.stestweb.SpringBootBasicsApplication
Caused by: java.lang.ClassNotFoundException: com.cgs.stestweb.SpringBootBasicsApplication

To address this, you will need to correct your configuration.

Jan Nielsen
  • 10,892
  • 14
  • 65
  • 119