vjgcpgkprt 发表于 2016-5-18 10:03:11

运行在 mac 10.6 上出现的异常

寻找答案
java.lang.UnsatisfiedLinkError: /Library/Java/Extensions/librxtxSerial.jnilib:no suitable image found.Did find:/Library/Java/Extensions/librxtxSerial.jnilib: no matching architecture in universal wrapper thrown while loading gnu.io.RXTXCommDriver
Exception in thread "Thread-4" java.lang.UnsatisfiedLinkError: /Library/Java/Extensions/librxtxSerial.jnilib:no suitable image found.Did find:/Library/Java/Extensions/librxtxSerial.jnilib: no matching architecture in universal wrapper
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1878)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1771)
at java.lang.Runtime.loadLibrary0(Runtime.java:823)
at java.lang.System.loadLibrary(System.java:1045)
at gnu.io.CommPortIdentifier.<clinit>(CommPortIdentifier.java:83)

下面是找到的解决方法但还没测试
Short Install Instructions

Windows

RXTXcomm.jar goes in \jre\lib\ext (under java)
rxtxSerial.dll goes in \jre\bin

Mac OS X (x86 and ppc) (there is an Installer with the source)

RXTXcomm.jar goes in/Library/Java/Extensions
librxtxSerial.jnilib goes in /Library/Java/Extensions
Run fixperm.sh thats in the directory.Fix perms is in the Mac_OS_X
subdirectory.

Linux (only x86, x86_64, ia64 here but more in the ToyBox)

RXTXcomm.jar goes in /jre/lib/ext (under java)
librxtxSerial.so goes in /jre/lib/ (i386 for instance)
Make sure the user is in group lock or uucp so lockfiles work.

Solaris (sparc only so far)

RXTXcomm.jar goes in /jre/lib/ext (under java)
librxtxSerial.so goes in /jre/lib/
Make sure the user is in group uucp so lockfiles work.
页: [1]
查看完整版本: 运行在 mac 10.6 上出现的异常