程序运行后提示,只执行一行然后抛出异常提示 A fatal error has been detected by the Java Runtime Environm
#A fatal error has been detected by the Java Runtime Environment:
#
EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x0000000180004465, pid=7900, tid=0x00000000000053d0
JRE version: Java(TM) SE Runtime Environment (8.0_291-b10) (build 1.8.0_291-b10)
Java VM: Java HotSpot(TM) 64-Bit Server VM (25.291-b10 mixed mode windows-amd64 compressed oops)
Problematic frame:
C [rxtxSerial.dll+0x4465]
Failed to write core dump. Minidumps are not enabled by default on client versions of Windows
If you would like to submit a bug report, please visit:
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
我尝试从jdk17到jdk8还是一样的问题
代码呢
确认一下jdk是否安装以及配置正确
看错误日志【C:\Users\Wt\Desktop\UsartTools-master\hs_err_pid7900.log】
IDEA默认的JRE版本,与环境变量JAVA_HOME的JDK版本不兼容,请手工指定构建 项目的JDK版本。

也可参考这篇:
https://blog.csdn.net/qq_41187714/article/details/103094372