我尝试在 debian 上使用 rxtx 串行通信库,并且已将 librxtx.so 添加到本机库路径中,但仍然发生此异常。
java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1738)
at java.lang.Runtime.loadLibrary0(Runtime.java:823)
at java.lang.System.loadLibrary(System.java:1028)
at gnu.io.CommPortIdentifier.<clinit>(CommPortIdentifier.java:83)
at com.vxoom.qit.basic.Log4jInit.startPrinterThread(Unknown Source)
at com.vxoom.qit.basic.Log4jInit.init(Unknown Source)
at javax.servlet.GenericServlet.init(GenericServlet.java:39)
atwinstone.ServletConfiguration.ensureInitialization(ServletConfiguration.java:183)
at winstone.WebAppConfiguration.<init>(WebAppConfiguration.java:918)
at winstone.HostConfiguration.initWebApp(HostConfiguration.java:131)
at winstone.HostConfiguration.<init>(HostConfiguration.java:73)
at winstone.HostGroup.initHost(HostGroup.java:85)
at winstone.HostGroup.<init>(HostGroup.java:45)
at winstone.Launcher.<init>(Launcher.java:196)
at winstone.Launcher.main(Launcher.java:391)