java开发rxtx程序
java开发rxtx程序,springboot开发rxtx程序
部署到ubantu服务器上面
部署步骤:ubuntu安装jdk1.8命令:
sudo apt-get install openjdk-8-jdk
apt-get install lrzsz
查找java安装目录:
/usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java
拷贝jar到目录下面
将 librxtxParallel.so 和 librxtxSerial.so 文件放到${JAVA_HOME}\jre\bin目录下,将 RXTXcomm.jar 包放到{JAVA_HOME}\jre\lib\ext目录下即可
用dmesg | grep tty看看系统启动过程中初始化了哪些串口设备
https://www.dianjilingqu.com/84665.html
https://blog.csdn.net/qq_30488445/article/details/126262119
https://blog.csdn.net/qq_29761395/article/details/123007041
https://www.cnblogs.com/xudong1990/p/14849921.html
Err:1 http://ports.ubuntu.com/ubuntu-ports xenial/main armhf vim-runtime all 2:7.4.1689-3ubuntu1
  Temporary failure resolving 'ports.ubuntu.com'
Err:2 http://ports.ubuntu.com/ubuntu-ports xenial/main armhf vim armhf 2:7.4.1689-3ubuntu1
  Temporary failure resolving 'ports.ubuntu.com'
E: Failed to fetch http://ports.ubuntu.com/ubuntu-ports/pool/main/v/vim/vim-runtime_7.4.1689-3ubuntu1_all.deb  Temporary failure resolving 'ports.ubuntu.com'
E: Failed to fetch http://ports.ubuntu.com/ubuntu-ports/pool/main/v/vim/vim_7.4.1689-3ubuntu1_armhf.deb  Temporary failure resolving 'ports.ubuntu.com'
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
再执行apt-get update 还是提示错误
2. 解决办法
百度了下:
使用cat命令追加nameserver设置
cat >> /etc/resolv.conf << EOF
>nameserver 8.8.8.8
>nameserver 8.8.4.4
>EOF
或
echo nameserver 8.8.8.8 > /etc/resolv.conf(还不知道如何换行。。。)
设置完毕查看:
cat /etc/resolv.conf
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
#     DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
nameserver 8.8.8.8
nameserver 8.8.4.4

 
                     
                    
                 
                    
                
 
                
            
         
         浙公网安备 33010602011771号
浙公网安备 33010602011771号