没有设置X11 DISPLAY变量

时间:2016-12-02 18:07:26

标签: java linux

使用Linux Redhat,远程服务器nike.cs.uga.edu,需要运行GUI(需要安装xquartz bc我使用Mac)。使用java GUI

$ java edu/uga/cs1302/gui/StudentMain
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 java.awt.Frame.<init>(Frame.java:385)
at javax.swing.JFrame.<init>(JFrame.java:189)
at edu.uga.cs1302.gui.StudentDirectory.<init>(StudentDirectory.java:30)
at edu.uga.cs1302.gui.StudentMain.main(StudentMain.java:9)

我需要帮助我需要运行的命令。 XQuartz安装在我的Mac上,但我不知道在远程服务器上使用它

0 个答案:

没有答案