我认为这是我的 java 安装中的一些问题,但我不知道是什么问题以及如何解决它
我可以在可视模式下使用 openjdk 运行 jar 文件,但在终端中我无法运行 jar 文件,例如您可以在下面看到
root@mohammad-Inspiron-1564:/media/storage/Linux/Freedom# java -jar freedom.jar
No protocol specified
No protocol specified
Exception in thread "main" java.lang.InternalError: Can't connect to X11 window server using ':0' as the value of the DISPLAY variable.
at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)
at sun.awt.X11GraphicsEnvironment.access$200(X11GraphicsEnvironment.java:65)
at sun.awt.X11GraphicsEnvironment$1.run(X11GraphicsEnvironment.java:110)
at java.security.AccessController.doPrivileged(Native Method)
at sun.awt.X11GraphicsEnvironment.<clinit>(X11GraphicsEnvironment.java:74)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:186)
at java.awt.GraphicsEnvironment.createGE(GraphicsEnvironment.java:102)
at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:81)
at java.awt.Window.initGC(Window.java:466)
at java.awt.Window.init(Window.java:486)
at java.awt.Window.<init>(Window.java:535)
at java.awt.Frame.<init>(Frame.java:420)
at javax.swing.JFrame.<init>(JFrame.java:218)
at de.resolution.emsgui.LanguageSelector.showButtonGrid(LanguageSelector.java:27)
at de.resolution.emsgui.LanguageSelector.<init>(LanguageSelector.java:19)
at emsgui.main(emsgui.java:46)
也许我应该重新安装 mu kubuntu :((
谢谢穆罕默德