If I try to profile application, (which is prepared under Eclipse, but running from command line) with the help of VisualVM, I get the following error message
If you are using eclipse, then go to Run/Debug configuration. Select your application from left side and click on Arguments.
Here you will see two text boxes.
1. Program Arguments 2. VM Arguments
In VM arguments, enter below commands. -Xverify:none
Click on apply and then Run/Debug.