Do Not Disable Bytecode Verification to Avoid a java.lang.VerifyError
(Doc ID 1291169.1)
Last updated on MAY 09, 2018
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:
To view full details, sign in with your My Oracle Support account.
Don't have a My Oracle Support account? Click to get started!