Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/346.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java运行时环境Ubuntu 14.04检测到一个致命错误_Java_Ubuntu 14.04_Java 7_Rxtx - Fatal编程技术网

Java运行时环境Ubuntu 14.04检测到一个致命错误

Java运行时环境Ubuntu 14.04检测到一个致命错误,java,ubuntu-14.04,java-7,rxtx,Java,Ubuntu 14.04,Java 7,Rxtx,我已经在Windows上开发了用于串行通信的Java应用程序。我想在Ubuntu 14.04上运行这个Java应用程序Jar Windows和Linux的Java版本均为1.7 64位 每当我尝试在Ubuntu 14.04上运行这个Jar时,我都会遇到以下错误: swapnilc@cms:~/Desktop/Janvi/testcode$java-jartest.jar Experimental: JNI_OnLoad called. Stable Library ==============

我已经在Windows上开发了用于串行通信的Java应用程序。我想在Ubuntu 14.04上运行这个Java应用程序Jar

Windows和Linux的Java版本均为1.7 64位

每当我尝试在Ubuntu 14.04上运行这个Jar时,我都会遇到以下错误:

swapnilc@cms:~/Desktop/Janvi/testcode$java-jartest.jar

Experimental:  JNI_OnLoad called.
Stable Library
=========================================
Native lib Version = RXTX-2.1-7
Java lib Version   = RXTX-2.1-7
RXTX Warning:  Removing stale lock file. /var/lock/LCK..ttyUSB0
Got PortList:: gnu.io.CommPortEnumerator@4fa666bf
Current PortID :: gnu.io.CommPortIdentifier@35a3ae73
Port in Use :: /dev/ttyUSB0
Started
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x00007f30f5b99462, pid=13867, tid=139848257709824
#
# JRE version: OpenJDK Runtime Environment (7.0_131) (build 1.7.0_131-b00)
# Java VM: OpenJDK 64-Bit Server VM (24.131-b00 mixed mode linux-amd64 compressed oops)
# Derivative: IcedTea 2.6.9
# Distribution: Ubuntu 14.04 LTS, package 7u131-2.6.9-0ubuntu0.14.04.2
# Problematic frame:
# C  [librxtxSerial.so+0x6462]  read_byte_array+0x52
#
# 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/swapnilc/Desktop/Janvi/testcode/hs_err_pid13867.log
#
# If you would like to submit a bug report, please include
# instructions on how to reproduce the bug and visit:
#   http://icedtea.classpath.org/bugzilla
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#
Aborted (core dumped)

这在Windows上运行良好。

我们不知道jar。。。错误也告诉了yu这个问题。(无法写入核心转储。核心转储已被禁用。要启用核心转储,请在再次启动Java之前尝试“ulimit-c unlimited”)@Luftbaum:我正在运行的Jar是“Test.Jar”。我已经在各自的文件夹中复制了本机库,如“RXTXComm.jar”和“librxtxSerial.so”。我不是指名称xD。我是说里面的代码^^。无论如何:尝试解决错误消息。启用堆芯转储。我之前尝试过这个方法,但仍然存在相同的问题。嗯,不知为什么,你一定失败了。我建议再试一次,因为看起来堆芯倾倒是个问题