Could not display the GUI. This application needs access to an X Server.
#1 问题一:
sh cytoscape.sh #命令,下面是运行结果
Exception in thread "main" java.awt.HeadlessException:
No X11 DISPLAY variable was set, but this program performed an operation which requires it.
at sun.java2d.HeadlessGraphicsEnvironment.getDefaultScreenDevice(HeadlessGraphicsEnvironment.java:77)
at org.cytoscape.launcher.internal.SplashPanel.<init>(SplashPanel.java:46)
at org.cytoscape.launcher.internal.Launcher.showSplashPanel(Launcher.java:85)
at org.cytoscape.launcher.internal.Launcher.main(Launcher.java:56)
#2 问题二:
sh Cytoscape_3_4_0_unix.sh #命令,下面是运行结果
Starting Installer ...
java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
at com.install4j.runtime.installer.Installer.getScreenExecutor(Installer.java:105)
at com.install4j.runtime.installer.Installer.runInProcess(Installer.java:58)
at com.install4j.runtime.installer.Installer.main(Installer.java:46)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at com.exe4j.runtime.LauncherEngine.launch(LauncherEngine.java:62)
at com.install4j.runtime.launcher.UnixLauncher.main(UnixLauncher.java:57)
Caused by: java.lang.reflect.InvocationTargetException
at java.awt.EventQueue.invokeAndWait(EventQueue.java:1321)
at java.awt.EventQueue.invokeAndWait(EventQueue.java:1296)
at javax.swing.SwingUtilities.invokeAndWait(SwingUtilities.java:1348)
at com.install4j.runtime.installer.Installer.getScreenExecutor(Installer.java:96)
... 8 more
Caused by: java.lang.ExceptionInInitializerError
at com.install4j.runtime.installer.frontend.InstallerWizardScreenExecutor.<clinit>(InstallerWizardScreenExecutor.java:13)
at com.install4j.runtime.installer.Installer$2.run(Installer.java:99)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:301)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:756)
at java.awt.EventQueue.access$500(EventQueue.java:97)
at java.awt.EventQueue$3.run(EventQueue.java:709)
at java.awt.EventQueue$3.run(EventQueue.java:703)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:726)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
Caused by: java.awt.HeadlessException:
No X11 DISPLAY variable was set, but this program performed an operation which requires it.
at sun.java2d.HeadlessGraphicsEnvironment.getDefaultScreenDevice(HeadlessGraphicsEnvironment.java:77)
at com.install4j.runtime.installer.frontend.GUIHelper.checkRetina(GUIHelper.java:231)
at com.install4j.runtime.installer.frontend.GUIHelper.isRetina(GUIHelper.java:218)
at com.install4j.runtime.installer.frontend.GUIHelper.loadIcon(GUIHelper.java:176)
at com.install4j.runtime.installer.frontend.GUIHelper.<clinit>(GUIHelper.java:39)
... 16 more
Could not display the GUI. This application needs access to an X Server.
*******************************************************************
You can also run this application in unattended mode without
access to an X server by passing the argument -q
*******************************************************************