java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path thrown while loading gnu.io.RXTXCommDriver
Exception in thread "main" java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1758)
at java.lang.Runtime.loadLibrary0(Runtime.java:823)
at java.lang.System.loadLibrary(System.java:1045)
at gnu.io.CommPortIdentifier.<clinit>(CommPortIdentifier.java:83)
at healthyMouse.SerialPortTest.initialize(SerialPortTest.java:27)
at healthyMouse.SerialPortTest.main(SerialPortTest.java:81)
我正在使用 MAC OS 10.7.5 和 Eclipse。我使用 buildPath->configure build path->add external jars 来导入 RXTXcomm.jar。我得到了错误。我是 MAC OS 的新手,所以我有点困惑如何在 MAC 中为 eclipse java 导入库。谢谢!