解决:centos7 启动项目no rxtxSerial in java.libary.path错误


我把服务器的下面配置换一下就可以了:

下载这个压缩包:mfz-rxtx-2.2-20081207-linux-x86_64
解压会有下面的文件

解决:centos7 启动项目no rxtxSerial in java.libary.path错误

 

 

Windows
----------------------------------------------------

Choose your binary build - x64 or x86 (based on which version of
the JVM you are installing to)

NOTE: You MUST match your architecture.  You can't install the i386
version on a 64-bit version of the JDK and vice-versa.

For a JDK installation:

Copy RXTXcomm.jar ---> <JAVA_HOME>/jre/lib/ext
Copy rxtxSerial.dll ---> <JAVA_HOME>/jre/bin
Copy rxtxParallel.dll ---> <JAVA_HOME>/jre/bin

Linux
----------------------------------------------------

Choose your binary build - x86_64 or i386 (based on which version of
the JVM you are installing to)

NOTE: You MUST match your architecture.  You can't install the i386
version on a 64-bit version of the JDK and vice-versa.

For a JDK installation on architecture=i386

Copy RXTXcomm.jar ---> <JAVA_HOME>/jre/lib/ext
Copy librxtxSerial.so ---> <JAVA_HOME>/jre/lib/i386/
Copy librxtxParallel.so ---> <JAVA_HOME>/jre/lib/i386/

NOTE: For a JDK installation on architecture=x86_64, just change the
i386 to x86_64 above.
按照上面官方给出的说明,把文件放到对应位置,然后重启项目;

注意:如果Linux jdk没有i386这个问题,有amd64,则是下载上面的压缩包,并且把.so文件放到amd64文件夹里面。

 

原创文章,作者:306829225,如若转载,请注明出处:https://blog.ytso.com/tech/aiops/269406.html

(0)
上一篇 2022年6月21日 11:53
下一篇 2022年6月21日 11:53

相关推荐

发表回复

登录后才能评论