执行java Gui时的核心转储

时间:2017-10-21 12:42:47

标签: java

我是java GUI的新手。我只是从书中执行了一个代码。我的核心被转储了。我能够运行正常的java程序。

我的代码:

import javax.swing.JOptionPane;

public class Gui{
        public static void main(String[] args){
                JOptionPane.showMessageDialog(null,"Hey there");
        }
}

核心转储消息:

#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x00007f17b82ee009, pid=4640, tid=4641
#
# JRE version: OpenJDK Runtime Environment (9.0) (build 9-internal+0-2016-04-14-195246.buildd.src)
# Java VM: OpenJDK 64-Bit Server VM (9-internal+0-2016-04-14-195246.buildd.src, mixed mode, tiered, compressed oops, g1 gc, linux-amd64)
# Problematic frame:
# C  [libjava.so+0x1d009]  JNU_GetEnv+0x19
#
# Core dump will be written. Default location: Core dumps may be processed with "/usr/share/apport/apport %p %s %c %P" (or dumping to /home/gayathri/core.4640)
#
# An error report file with more information is saved as:
# /home/gayathri/hs_err_pid4640.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.
#
Aborted (core dumped)

0 个答案:

没有答案