Rxtx串口的问题
康贝勒 2018-06-01 05:11:48 我在Windows跑通了串口通讯,但是放到Linux上运行,JVM报错了,报错内容如下:
#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x00007f83aa558d9d, pid=21887, tid=0x00007f83aa316700
#
# JRE version: Java(TM) SE Runtime Environment (8.0_171-b11) (build 1.8.0_171-b11)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (25.171-b11 mixed mode linux-amd64 compressed oops)
# Problematic frame:
# C [librxtxSerial.so+0x6d9d] read_byte_array+0x3d
#
# Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
#
# An error report file with more information is saved as:
# /root/Workspaces/MyEclipse 2017/telegram/hs_err_pid21887.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.
#
也试过ulimit -c unlimited
也试过在eclipse.ni里修改defaultType,现在可以保证java环境和编译环境没问题
已经在这个问题上纠结了很久,求大神快来帮帮忙