使用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上,但我不知道在远程服务器上使用它