在Linux上安装Eclipse - GtkWindow的屏幕未设置 [英] Installing Eclipse on Linux - Screen for GtkWindow not set

查看:775
本文介绍了在Linux上安装Eclipse - GtkWindow的屏幕未设置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Linux服务器上安装了32位Linux版本的Eclipse for Java EE Developers(http://www.eclipse.org/downloads/packages/eclipse-ide-java-ee-developers/indigosr1),我'有问题从linux机器启动eclipse。我编辑了我的eclipse.ini并添加了vm java路径(见下文):



异常:
(Eclipse: 22632):Gtk-WARNING **:GtkWindow未设置的屏幕;在使用窗口之前,您必须始终为GtkWindow设置
a屏幕



eclipse.ini文件:
-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 **:GtkWindow未设置的屏幕;在使用窗口之前,您必须始终为GtkWindow设置
a屏幕

解决方案

您需要运行X Server远程机器。您还需要具有转发X权限并在SSH连接中使用它。例如,请参见文章,或通过SSH搜索转发X11 Linux发行版


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

解决方案

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

这篇关于在Linux上安装Eclipse - GtkWindow的屏幕未设置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆