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
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· AI与.NET技术实操系列(二):开始使用ML.NET
· 记一次.NET内存居高不下排查解决与启示
· 探究高空视频全景AR技术的实现原理
· 理解Rust引用及其生命周期标识(上)
· 浏览器原生「磁吸」效果!Anchor Positioning 锚点定位神器解析
· DeepSeek 开源周回顾「GitHub 热点速览」
· 物流快递公司核心技术能力-地址解析分单基础技术分享
· .NET 10首个预览版发布:重大改进与新特性概览!
· AI与.NET技术实操系列(二):开始使用ML.NET
· 单线程的Redis速度为什么快?