I would like to set -noverify as a VM argument through java code. I could not find any resource online to help with this.
If I use System.setProperty(..,..)
, what do I set as the value or perhaps the key?
I have tried using System.property("Xverify","none")
but this doesn't seem to work.
Note: This is just to run some test cases. I am turning off byte code verification because of this issue - link
Thank you.
Let me summarize comments in this answer.
VerifyError
. This means that the application generates invalid bytecode, and when JVM executes it, the results are unpredictable. For example, JVM may crash like in this question.