java RXTXcomm.jar的串口通信 程序闪退

对串口操作的时候可以正常读取串口列表,但是当用串口进行通信的时候,发数据调用.flush()方法时程序就闪退,IDEA控制台提示如下,请教一下这个问题怎么解决?

outputStream.flush();

#
# A fatal error has been detected by the Java Runtime Environment:
#
#  EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x0000000180004465, pid=8256, tid=20056
#
# JRE version: Java(TM) SE Runtime Environment (15.0.2+7) (build 15.0.2+7-27)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (15.0.2+7-27, mixed mode, sharing, tiered, compressed oops, g1 gc, windows-amd64)
# Problematic frame:
# C  [rxtxSerial.dll+0x4465]
#
# No core dump will be written. Minidumps are not enabled by default on client versions of Windows
#
# An error report file with more information is saved as:
# C:\Users\86134\Desktop\wenjing\hs_err_pid8256.log
#
# If you would like to submit a bug report, please visit:
#   https://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.
#
libpng warning: iCCP: cHRM chunk does not match sRGB

Process finished with exit code 1

JDK版本太高

使用RXTXcomm报错 EXCEPTION_ACCESS_VIOLATION (0xc0000005) C [rxtxSerial.dll+0x5b00]_Loveme_CN的博客-CSDN博客 JAVA串口通信,使用RXTXxcomm 报错 #Problematic frame: # C [rxtxSerial.dll+0x4465]背景功能快捷键合理的创建标题,有助于目录的生成如何改变文本的样式插入链接与图片如何插入一段漂亮的代码片生成一个适合你的列表创建一个表格设定内容居中、居左、居右SmartyPants创建一个自定义列表如何创建一个注脚注释也是必不可少的KaTeX数学公式新的甘特图功能,丰富你的文章UML 图表FLowchart流程图导出与导入导出导入背景项目中需要将信息通过串口方式发 https://blog.csdn.net/Loveme_CN/article/details/115918493