Installing Eclipse on Linux - Screen for GtkWindow not set

匿名 (未验证) 提交于 2019-12-03 00:53:01

问题:

I installed the 32 bit Linux version of Eclipse for Java EE Developers on a Linux server (http://www.eclipse.org/downloads/packages/eclipse-ide-java-ee-developers/indigosr1) and I'm having issues launching eclipse from the linux machine. I've edited my eclipse.ini and added the vm java path (see below):

Exception: (Eclipse:22632): Gtk-WARNING **: Screen for GtkWindow not set; you must always set a screen for a GtkWindow before using the window

eclipse.ini file: -startup plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar --launcher.library plugins/org.eclipse.equinox.launcher.gtk.linux.x86_1.1.100.v20110505 -product org.eclipse.epp.package.jee.product --launcher.defaultAction openFile -showsplash org.eclipse.platform --launcher.XXMaxPermSize 256m --launcher.defaultAction openFile -vm /opt/bin/java -vmargs -Dosgi.requiredJavaVersion=1.5 -XX:MaxPermSize=256m -Xms40m -Xmx512m

(Eclipse:22632): Gtk-WARNING **: Screen for GtkWindow not set; you must always set a screen for a GtkWindow before using the window

回答1:

you need to have an X Server running on the remote machine. You also need to have permissions to forward X and use it in your SSH connection. See this article for example, or search for forwarding X11 via SSH for your Linux distribution



回答2:

First you need X11 installed on your Mac. Then try something simpler, like

$ ssh -X server xclock 

If xclock is displayed, you can try

$ ssh -X server eclipse 


易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!