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
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.