Redefinition failed with error 62 while trying to profile an application

半世苍凉 提交于 2019-11-28 09:34:58

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

shmosel

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

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.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!