Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Installing Eclipse on Linux - Screen for GtkWindow not set

I installed the 32 bit Linux version of Eclipse for Java EE Developers on a Linux server 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
like image 553
c12 Avatar asked Nov 09 '11 22:11

c12


1 Answers

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
like image 172
Diego Torres Milano Avatar answered Nov 14 '22 21:11

Diego Torres Milano