Do Not Disable Bytecode Verification to Avoid a java.lang.VerifyError
Last updated on APRIL 01, 2017
Applies to:Java SE JDK and JRE - Version 1.5.0 to 8
Oracle WebLogic Server - Version 10.3.6 and later
Information in this document applies to any platform.
When running or compiling Java code, a java.lang.VerifyError might be encountered. Disabling the bytecode verifier is one method of dealing with the error. Additionally:
- Several documents in the internet recommend to disable Java bytecode verification for performance reasons.
- It has been observed that Java bytecode verification was intentionally disabled in order to execute bad classfiles. Classfiles, which would otherwise be rejected by the bytecode verifier.
Such environments set the option -Xverify:none or -noverify or even both. For example:
Sign In with your My Oracle Support account
Don't have a My Oracle Support account? Click to get started
My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms