在Mac IDEA中在运行页面配置javaagent执行报错:
Error occurred during initialization of VM
agent library failed to init: instrument
Error opening zip file or JAR manifest missing : /work/-0.8.
解决方案
- agent引用的路径使用绝对路径。
- 路径加引号:
-javaagent:"/work/-0.8.=includes=*,output=tcpserver,address=192.168.26.96,port=9048"
- 复制的路径有毒,把文件拖到终端里面,获取文件路径