AttachNotSupportedException while running jMockit tests on IBM JRE

前端 未结 6 1168
北海茫月
北海茫月 2020-12-19 16:55

I am getting the below exception when I try to run a simple jMockit/JUnit test using IBM JDK. Has anyone faced this issue? I tried given -Dcom.ibm.tools.attach.enable=

6条回答
  •  庸人自扰
    2020-12-19 17:07

    Certain versions of the IBM JDK do not properly support the attach mechanism. You might try running with -javaagent:jmockit.jar parameter. The following info is a bit old, but it may still apply as other JDKs do not necessarily fully support the attach mechanism.

    See this: http://code.google.com/p/jmockit/issues/detail?id=18

提交回复
热议问题