Redefinition failed with error 62 while trying to profile an application

后端 未结 4 716
醉酒成梦
醉酒成梦 2020-12-10 00:31

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

相关标签:
4条回答
  • 2020-12-10 00:52

    According to this GitHub issue, it's been fixed. Updating to version 1.4 solved the problem for me.

    0 讨论(0)
  • 2020-12-10 01:05

    Here https://netbeans.org/bugzilla/show_bug.cgi?id=191297 appears a workaround: run profiled application with -Xverify:none

    0 讨论(0)
  • 2020-12-10 01:06

    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.

    0 讨论(0)
  • 2020-12-10 01:09

    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.

    0 讨论(0)
提交回复
热议问题