gpt4 book ai didi

java - 在 Linux 上安装 Eclipse - 未设置 GtkWindow 的屏幕

转载 作者:IT王子 更新时间:2023-10-29 00:59:21 29 4
gpt4 key购买 nike

我安装了 32 位 Linux 版本的 Eclipse for Java EE Developers在 Linux 服务器上,我在从 Linux 机器启动 eclipse 时遇到问题。我编辑了我的 eclipse.ini 并添加了 vm Java 路径(见下文):

异常:

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

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

最佳答案

首先,您需要在 Mac 上安装 X11。然后尝试一些更简单的事情,比如

$ ssh -X server xclock

如果显示xclock,可以试试

$ ssh -X server eclipse

关于java - 在 Linux 上安装 Eclipse - 未设置 GtkWindow 的屏幕,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8072693/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com