【求助】 在用com.sun.tools.attach.VirtualMachine的时候出现AttachNotSupportedException异常
来源:互联网 发布:海迈预算软件 编辑:程序博客网 时间:2024/05/20 19:49
LoadAgent.java如下 :
import java.io.IOException;
import com.sun.tools.attach.AgentInitializationException;
import com.sun.tools.attach.AgentLoadException;
import com.sun.tools.attach.AttachNotSupportedException;
import com.sun.tools.attach.VirtualMachine;
/**
* @author z00174343
*
*/
public class LoadAgent {
/**
* @param args
*/
public static void main(String[] args) throws AttachNotSupportedException,IOException,AgentLoadException,AgentInitializationException {
// TODO Auto-generated method stub
VirtualMachine vm = VirtualMachine.attach(args[0]);
vm.loadAgent(args[1]);
}
}
抛出异常:
E:\wokspace\Demo1\src>java LoadAgent 4456 "E:\wokspace\Demo1\src\agent_fuckallbt
n.jar"
java.lang.UnsatisfiedLinkError: no attach in java.library.path
Exception in thread "main" com.sun.tools.attach.AttachNotSupportedException: no
providers installed
at com.sun.tools.attach.VirtualMachine.attach(VirtualMachine.java:190)
at LoadAgent.main(LoadAgent.java:21)
注:我在其它电脑上就可以运行.
- 【求助】 在用com.sun.tools.attach.VirtualMachine的时候出现AttachNotSupportedException异常
- com.sun.tools.attach.AttachNotSupportedException: no providers installed
- 在maven的pom.xml中出现Missing:com.sun:tools:jar:1.5.0错误
- eclipse在maven出现Missing artifact com.sun:tools:jar:1.5.0:system之完美解决
- eclipse的maven:出现Missing indirectly referenced artifact com.sun:tools:jar:1.5.0
- 运行javac -version 出现 com.sun.tools.javac.main错误
- lib依赖导致在app运行的时候出现的异常 Cause: com.android.dex.DexException: Multiple dex files define
- eclipse在maven出现Missing artifact com.sun:tools:jar:1.5.0:system之完美解决 (2)
- 建立watch应用的时候,出现attach问题
- fastjson 出现 com.sun.jdi.InvocationException 异常 原因
- JavaMail开发出现com/sun/mail/util/LineInputStream异常
- com.sun.tools.Main.Compile
- missing com.sun.tools.jar
- com.sun.tools.javadoc.Main
- com.sun.tools.javac.Main
- Java在操作数组的时候常出现的异常
- 'com.sun.tools.javac.Main',not found的解决办法
- 找不到com.sun.tools.javac.Main的解决办法
- 移动营销的魔力:让你的客户无处可逃(附赠2012移动营销百问百答手册)
- Android 中opengl es灯光效果实例
- android opensource webs
- APU
- Nexus Q为什么那么贵 因为是Made in USA(拆解图)
- 【求助】 在用com.sun.tools.attach.VirtualMachine的时候出现AttachNotSupportedException异常
- MVC 部署在IIS5.1上
- 查找链表的倒数第k个元素
- java:getByte()和toCharArray()的用法
- Arx 新建布局(Creating new Paperspace)
- ArcGIS Runtime SDK for Windows Phone 3.0正式版发布啦,赶快来体验!
- MongoDB基本管理命令
- Unable to resolve target 'android-7'
- cgi 上传文件(c 语言) 进度条显示