我正在尝试使用 smslib 发送短信。它在 Windows 上运行良好,但现在我需要让它在 ubuntu 11.10 下运行。所以我从这里http://www.cloudhopper.com/opensource/rxtx/为 64 位操作系统安装了 rxtx 。使用已被检测为 /dev/ttyACM0 的 USB 连接手机,我将其链接到 /dev/ttyS32(一个免费的串行端口)。然后我尝试运行程序,我收到以下错误:
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x00007f44f9a065da, pid=8875, tid=139934227818240
#
# JRE version: 7.0_147-b147
# Java VM: OpenJDK 64-Bit Server VM (21.0-b17 mixed mode linux-amd64 compressed oops)
# Derivative: IcedTea7 2.0
# Distribution: Ubuntu 11.10, package 7~b147-2.0-0ubuntu0.11.10.1
# Problematic frame:
# C [librxtxSerial.so+0x75da] Java_gnu_io_RXTXPort_nativeDrain+0xea
#
# 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:
# /home/radek/NetBeansProjects/sms/hs_err_pid8875.log
#
# If you would like to submit a bug report, please include
# instructions on how to reproduce the bug and visit:
# https://bugs.launchpad.net/ubuntu/+source/openjdk-7/
#
Java Result: 134
我不知道如何解决这个问题。