Exception in thread "main" java.lang.UnsatisfiedLinkError: Could not load SWT library. Reasons:
no swt-pi-cocoa-4932r18 in java.library.path: /Users/a/Library/Java/Extensions:/Library/Java/Extensions:/Network/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java:.
no swt-pi-cocoa in java.library.path: /Users/a/Library/Java/Extensions:/Library/Java/Extensions:/Network/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java:.
Can't load library: /Users/a/.swt/lib/macosx/aarch64/libswt-pi-cocoa-4932r18.jnilib
Can't load library: /Users/a/.swt/lib/macosx/aarch64/libswt-pi-cocoa.jnilib
Can't load library: /Users/a/.swt/lib/macosx/aarch64/libswt-pi-cocoa-4932r18.jnilib
at org.eclipse.swt.internal.Library.loadLibrary(Library.java:342)
at org.eclipse.swt.internal.Library.loadLibrary(Library.java:256)
at org.eclipse.swt.internal.cocoa.OS.<clinit>(OS.java:21)
at org.eclipse.swt.internal.cocoa.NSThread.isMainThread(NSThread.java:36)
at org.eclipse.swt.graphics.Device.<init>(Device.java:118)
at org.eclipse.swt.widgets.Display.<init>(Display.java:736)
at org.eclipse.swt.widgets.Display.<init>(Display.java:727)
at org.eclipse.swt.widgets.Display.getDefault(Display.java:1439)
at com.pnfsoftware.jeb.rcpclient.extensions.app.App.<init>(App.java:72)
at com.pnfsoftware.jeb.rcpclient.JebApp.<init>(JebApp.java:35)
at com.pnfsoftware.jeb.rcpclient.Launcher.main(Launcher.java:33)
报错如下
原因:安装的是x86 64的库
所以需要找arm的库
找了个dataloader里面swt库
javaswtjnilib库-Java文档类资源-CSDN下载
然后改名就成功了
本来是4946r21
然后改成下面
三个库都得改
|