Bom dia! Eu compilo esse programa aqui abaixo pelo terminal e dá esse erro.
//Começo do código
<import javax.swing.JOptionPane;
public class Welcome4
{
public static void main(String args[])
{
JOptionPane.showMessageDialog(null,"Welcome\nto\nJava\nProgramaing!");
System.exit(0);
}
}>
//Fim do código
Eu uso javac Welcome4.java
java Welcome4
Segue o erro abaixo, meu ubuntu é Linux nomedopc 4.15.0-58-generic #64~16.04.1-Ubuntu SMP Wed Aug 7 14:10:35 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x00007f6318b2a009, pid=4259, tid=4260
#
# 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 %d %P" (or dumping to /home/nomedopc/Documentos/ProgramasJ/core.4259)
#
# An error report file with more information is saved as:
# /home/nomedopc/Documentos/ProgramasJ/hs_err_pid4259.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.
#
Abortado (imagem do núcleo gravada)