Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exception in thread "main" java.lang.UnsatisfiedLinkError: sun.tools.attach.WindowsAttachProvider.tempPath()Ljava/lang/String; #5

Open
kevinsnameneedlong opened this issue Dec 18, 2023 · 1 comment

Comments

@kevinsnameneedlong
Copy link

java -jar Agent-1.0-SNAPSHOT-jar-with-dependencies.jar
Exception in thread "main" java.lang.UnsatisfiedLinkError: sun.tools.attach.WindowsAttachProvider.tempPath()Ljava/lang/String;
at sun.tools.attach.WindowsAttachProvider.tempPath(Native Method)
at sun.tools.attach.WindowsAttachProvider.isTempPathSecure(WindowsAttachProvider.java:91)
at sun.tools.attach.WindowsAttachProvider.listVirtualMachines(WindowsAttachProvider.java:75)
at io.earcam.wrapped.com.sun.tools.attach.Provider.listVirtualMachines(Provider.java:113)
at com.sun.tools.attach.VirtualMachine.list(VirtualMachine.java:147)
at org.apache.catalina.servlets.Attach.att(Attach.java:50)
at org.apache.catalina.servlets.Attach.main(Attach.java:16)

这个报错一直没找到具体原因

@veo
Copy link
Owner

veo commented Dec 19, 2023

windows一般是都是没有attach.dll或者tools.jar的问题。装完整的jdk可能能解决这个报错

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants