jmockit: Native library for Attach API not available in this JRE error

前端 未结 7 1852
时光取名叫无心
时光取名叫无心 2020-12-30 00:32

I was trying to use jmockit to unit test my project and got the following error:

java.lang.UnsatisfiedLinkError: no attach in java.library.path
java.lang.Ill         


        
7条回答
  •  猫巷女王i
    2020-12-30 01:15

    You have to set agent. You can set VM arguments if you are using eclipse and Args will be like this:

    -javaagent:local path to your jmockit jar\jmockit.jar

    eg: -javaagent:D:\jmockit.jar

提交回复
热议问题