#
# A fatal error has been detected by the Java Runtime Environment:
#
# EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x0000000180005b00, pid=39016, tid=0x0000000000008874
#
# JRE version: Java(TM) SE Runtime Environment (8.0_333-b02) (build 1.8.0_333-b02)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (25.333-b02 mixed mode windows-amd64 compressed oops)
# Problematic frame:
# C [rxtxSerial.dll+0x5b00]
#
# Failed to write core dump. Minidumps are not enabled by default on client versions of Windows
#
# An error report file with more information is saved as:
# D:\work\javacode\port5fromport4\hs_err_pid39016.log
#
# If you would like to submit a bug report, please visit:
# http://bugreport.java.com/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#
Process finished with exit code 1
使用RXTX的时候接收串口消息出现的错误,经过网络查询可知是jdk8的小版本不对,换一个旧版本的jdk8就行
然后翻找RXTX带的README发现要1.6版本
直接1.8旧版本就行
地址:https://www.oracle.com/java/technologies/javase/javase8u211-later-archive-downloads.html
建议选相同的旧版本,怕其他版本也有问题,我在这选的是
安装完旧版本jdk8之后
记得把这几个文件放在对应的旧版本里
然后在idea改jdk版本
先删后加
然后如果要在其他环境运行串口程序,要记得在高级系统设置改java_home路径