在ubuntu下无法运行swing程序,即使是
import javax.swing.JFrame;public class GUI {
public static void main(String[] args){
JFrame frm = new JFrame("Swing Test");
frm.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frm.setSize(100, 50);
frm.setLocation(200, 150);
frm.setVisible(true);
}
}
这几行代码,也是同样的错误(如下),求解,这是什么问题,如何解决啊?
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x00007f37e4f1bde0, pid=5044, tid=139878017611536
#
# JRE version: 6.0_30-b12
# Java VM: Java HotSpot(TM) 64-Bit Server VM (20.5-b03 mixed mode linux-amd64 compressed oops)
# Problematic frame:
# C  [ld-linux-x86-64.so.2+0x15de0]  _dl_make_stack_executable+0x3250
#
# An error report file with more information is saved as:
# /home/peng/workspace/SwingTest/hs_err_pid5044.log
#
# If you would like to submit a bug report, please visit:
#   http://java.sun.com/webapps/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#