我正在尝试使用Online GDB和TutorialsPoint Java IDE,但是我一直收到显示错误。
我尝试遵循this线程和this一个线程,但是它无济于事,因为我无法在任何地方设置export DISPLAY=:0.0
。
完整错误:
Exception in thread "main" java.awt.HeadlessException:
No X11 DISPLAY variable was set, but this program performed an operation which requires it.
at java.awt.GraphicsEnvironment.checkHeadless(GraphicsEnvironment.java:204)
at java.awt.Window.<init>(Window.java:536)
at java.awt.Frame.<init>(Frame.java:420)
at javax.swing.JFrame.<init>(JFrame.java:233)
at Main.main(Main.java:8)
不确定从这里做什么。通过在线IDE获取GUI是不可能的吗?