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

Mac aarch64 运行executor executor ExecutorRegistryThread" java.lang.UnsatisfiedLinkError: Can't load library: /var/folders/hp/jb28x8qj3z7crl5ssf8tl6cc0000gn/T/jna-400106789/jna750014645081268444.tmp #680

Open
dalayy opened this issue Oct 31, 2024 · 3 comments
Labels
question Further information is requested

Comments

@dalayy
Copy link

dalayy commented Oct 31, 2024

mac 运行executor 时报错:Exception in thread "datax-web, executor ExecutorRegistryThread" java.lang.UnsatisfiedLinkError: Can't load library: /var/folders/hp/jb28x8qj3z7crl5ssf8tl6cc0000gn/T/jna-400106789/jna750014645081268444.tmp
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1823)
at java.lang.Runtime.load0(Runtime.java:782)
at java.lang.System.load(System.java:1098)
at com.sun.jna.Native.loadNativeDispatchLibraryFromClasspath(Native.java:947)
at com.sun.jna.Native.loadNativeDispatchLibrary(Native.java:922)
at com.sun.jna.Native.(Native.java:190)
at com.sun.jna.Pointer.(Pointer.java:54)
at com.sun.jna.Structure.(Structure.java:2130)
at oshi.hardware.platform.mac.MacCentralProcessor.(MacCentralProcessor.java:53)
at oshi.hardware.platform.mac.MacHardwareAbstractionLayer.getProcessor(MacHardwareAbstractionLayer.java:53)
at com.wugui.datatx.core.util.OSUtils.cpuUsage(OSUtils.java:99)
at com.wugui.datatx.core.thread.ExecutorRegistryThread.lambda$start$0(ExecutorRegistryThread.java:44)
at java.lang.Thread.run(Thread.java:750)

通过file /var/folders/hp/jb28x8qj3z7crl5ssf8tl6cc0000gn/T/jna-400106789/jna750014645081268444.tmp 查看,发现文件是x86架构,可是我的jvm 是aarch64的,有没有大佬知道怎么处理

@dalayy dalayy added the question Further information is requested label Oct 31, 2024
@dalayy
Copy link
Author

dalayy commented Oct 31, 2024

开始以为是jna 版本太低,升级之后还是有问题

@riruigit
Copy link

我的 m1 pro 也是这样

@riruigit
Copy link

后面有找到解决方案吗?

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

No branches or pull requests

2 participants