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
According to this GitHub issue, it's been fixed. Updating to version 1.4 solved the problem for me.
Here https://netbeans.org/bugzilla/show_bug.cgi?id=191297 appears a workaround: run profiled application with -Xverify:none
The workaround I found using IntelliJ is to compile to Java 1.6 byte code. The menu option to do so is: File - Project Structure, then set Project language level to 6.
This precludes you from using Java features only available with Java 7 or 8.
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.