我已经制作了一个java应用程序。它使用jnativehook计算鼠标点击次数和按键次数。当我启动应用程序(jar文件)并开始计算事件时,我在IDE中启动了第二个应用程序。当开始计算事件时,我的第一个应用程序崩溃,并显示以下错误消息:
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x0000000000002196, pid=6756, tid=140255629047552
#
# JRE version: Java(TM) SE Runtime Environment (7.0_45-b18) (build 1.7.0_45-b18)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (24.45-b08 mixed mode linux-amd64 compressed oops)
# Problematic frame:
# C 0x0000000000002196
#
# 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/beknazar/Documents/newjar/tracker-1.0-SNAPSHOT/hs_err_pid6756.log
#
# If you would like to submit a bug report, please visit:
# http://bugreport.sun.com/bugreport/crash.jsp
#
Aborted (core dumped)
请帮我看看这里有什么问题。
答案 0 :(得分:0)
应该在1.1.4和1.2中解决。 IIRC,这是自动解包器试图覆盖另一个实例已经使用的本机库的结果。