gpt4 book ai didi

java - 使用 smslib 和手机作为调制解调器的 rxtx 错误

转载 作者:行者123 更新时间:2023-11-29 07:16:02 31 4
gpt4 key购买 nike

我正在尝试使用 smslib 发送短信。它在 Windows 上运行良好,但现在我需要让它在 ubuntu 11.10 下运行。所以我从这里为 64 位操作系统安装了 rxtx http://www.cloudhopper.com/opensource/rxtx/ .使用 usb 连接手机,它被检测为/dev/ttyACM0,我链接到/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

我不知道如何解决这个问题。

最佳答案

我在我的 ubuntu 11.10 64 位版本上遇到了类似的问题。

问题是因为我手动安装了 RXTX,它与我的架构不兼容。我使用

重新安装了 RXTX
sudo apt-get install librxtx-java

现在可以了。我希望这会有所帮助。

关于java - 使用 smslib 和手机作为调制解调器的 rxtx 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9567889/

31 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com