org.eclipse.swt.SWTError: No more handles [gtk_init_check() failed] while running eclipse on ubuntu
Unix & Linux: org.eclipse.swt.SWTError: No more handles [gtk_init_check() failed] while running eclipse on ubuntu
The Question: I was trying to open eclipse in my ubuntu VM with the below commmand.. And as
soon as I do that, I always get the below exception -
ubuntu@username-dyn-vm1-48493:~$ eclipse
Eclipse:
An error has occurred. See the log file
/home/ubuntu/.eclipse/org.eclipse.platform_3.8_155965261/configuration/
1381367113197.log.
so when I went to that particular log file, this is what I can see in the log -
ubuntu@username-dyn-vm1-48493:~$ more /home/ubuntu/.eclipse/
org.eclipse.platform_3.8_155965261/configuration/1381367113197.log
!SESSION 2013-10-10 01:05:13.088 ----------------------------------------------
-
eclipse.buildId=debbuild
java.version=1.7.0_25
java.vendor=Oracle Corporation
BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_US
Command-line arguments: -os linux -ws gtk -arch x86_64
!ENTRY org.eclipse.osgi 4 0 2013-10-10 01:05:17.555
!MESSAGE Application error
!STACK 1
org.eclipse.swt.SWTError: No more handles [gtk_init_check() failed]
at org.eclipse.swt.SWT.error(SWT.java:4387)
at org.eclipse.swt.widgets.Display.createDisplay(Display.java:914)
at org.eclipse.swt.widgets.Display.create(Display.java:900)
at org.eclipse.swt.graphics.Device.<init>(Device.java:156)
at org.eclipse.swt.widgets.Display.<init>(Display.java:498)
at org.eclipse.swt.widgets.Display.<init>(Display.java:489)
at org.eclipse.ui.internal.Workbench.createDisplay(Workbench.java:716)
at org.eclipse.ui.PlatformUI.createDisplay(PlatformUI.java:161)
at org.eclipse.ui.internal.ide.application.IDEApplication.createDisplay
(IDEApplication.java:154)
at org.eclipse.ui.internal.ide.application.IDEApplication.start
(IDEApplication.java:96)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run
(EclipseAppHandle.java:196)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication
(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start
(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run
(EclipseStarter.java:353)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run
(EclipseStarter.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:43)
... (Please watch the video for the full question)
Solutions: Please watch the whole video to see all solutions, in order of how many people found them helpful
== This solution helped 4 people ==
I think this is a problem with gtk. Check what version is installed.
dpkg -l libgtk[0-9]* | grep ^i
If it's not installed or is the incorrect version then do a sudo apt-get
install gtk or do an sudo apt-get update.
EDIT
The problem was that SSH was using SSH to remote into a Linux VM and didn't
have an X-Server set up on Windows and didn't have X11 forwarding enabled.
After getting that straightened out the OP shouldn't have any issues running
Eclipse.
With thanks & praise to God, and with thanks to the many people who have made this project possible! | Content (except music & images) licensed under cc by-sa 3.0 | Music: https://www.bensound.com/royalty-free-music | Images: https://stocksnap.io/license & others | With thanks to user warhansen (https://unix.stackexchange.com/users/192137), user user837451 (https://unix.stackexchange.com/users/14088), user user100341 (https://unix.stackexchange.com/users/100341), user SSH (https://unix.stackexchange.com/users/48833), user slm (https://unix.stackexchange.com/users/7453), user PersianGulf (https://unix.stackexchange.com/users/21911), user Jeight (https://unix.stackexchange.com/users/48903), and the Stack Exchange Network (http://unix.stackexchange.com/questions/94497). Trademarks are property of their respective owners. Disclaimer: All information is provided "AS IS" without warranty of any kind. You are responsible for your own actions. Please contact me if anything is amiss at Roel D.OT VandePaar A.T gmail.com.
Видео org.eclipse.swt.SWTError: No more handles [gtk_init_check() failed] while running eclipse on ubuntu канала Roel Van de Paar
The Question: I was trying to open eclipse in my ubuntu VM with the below commmand.. And as
soon as I do that, I always get the below exception -
ubuntu@username-dyn-vm1-48493:~$ eclipse
Eclipse:
An error has occurred. See the log file
/home/ubuntu/.eclipse/org.eclipse.platform_3.8_155965261/configuration/
1381367113197.log.
so when I went to that particular log file, this is what I can see in the log -
ubuntu@username-dyn-vm1-48493:~$ more /home/ubuntu/.eclipse/
org.eclipse.platform_3.8_155965261/configuration/1381367113197.log
!SESSION 2013-10-10 01:05:13.088 ----------------------------------------------
-
eclipse.buildId=debbuild
java.version=1.7.0_25
java.vendor=Oracle Corporation
BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_US
Command-line arguments: -os linux -ws gtk -arch x86_64
!ENTRY org.eclipse.osgi 4 0 2013-10-10 01:05:17.555
!MESSAGE Application error
!STACK 1
org.eclipse.swt.SWTError: No more handles [gtk_init_check() failed]
at org.eclipse.swt.SWT.error(SWT.java:4387)
at org.eclipse.swt.widgets.Display.createDisplay(Display.java:914)
at org.eclipse.swt.widgets.Display.create(Display.java:900)
at org.eclipse.swt.graphics.Device.<init>(Device.java:156)
at org.eclipse.swt.widgets.Display.<init>(Display.java:498)
at org.eclipse.swt.widgets.Display.<init>(Display.java:489)
at org.eclipse.ui.internal.Workbench.createDisplay(Workbench.java:716)
at org.eclipse.ui.PlatformUI.createDisplay(PlatformUI.java:161)
at org.eclipse.ui.internal.ide.application.IDEApplication.createDisplay
(IDEApplication.java:154)
at org.eclipse.ui.internal.ide.application.IDEApplication.start
(IDEApplication.java:96)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run
(EclipseAppHandle.java:196)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication
(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start
(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run
(EclipseStarter.java:353)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run
(EclipseStarter.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:43)
... (Please watch the video for the full question)
Solutions: Please watch the whole video to see all solutions, in order of how many people found them helpful
== This solution helped 4 people ==
I think this is a problem with gtk. Check what version is installed.
dpkg -l libgtk[0-9]* | grep ^i
If it's not installed or is the incorrect version then do a sudo apt-get
install gtk or do an sudo apt-get update.
EDIT
The problem was that SSH was using SSH to remote into a Linux VM and didn't
have an X-Server set up on Windows and didn't have X11 forwarding enabled.
After getting that straightened out the OP shouldn't have any issues running
Eclipse.
With thanks & praise to God, and with thanks to the many people who have made this project possible! | Content (except music & images) licensed under cc by-sa 3.0 | Music: https://www.bensound.com/royalty-free-music | Images: https://stocksnap.io/license & others | With thanks to user warhansen (https://unix.stackexchange.com/users/192137), user user837451 (https://unix.stackexchange.com/users/14088), user user100341 (https://unix.stackexchange.com/users/100341), user SSH (https://unix.stackexchange.com/users/48833), user slm (https://unix.stackexchange.com/users/7453), user PersianGulf (https://unix.stackexchange.com/users/21911), user Jeight (https://unix.stackexchange.com/users/48903), and the Stack Exchange Network (http://unix.stackexchange.com/questions/94497). Trademarks are property of their respective owners. Disclaimer: All information is provided "AS IS" without warranty of any kind. You are responsible for your own actions. Please contact me if anything is amiss at Roel D.OT VandePaar A.T gmail.com.
Видео org.eclipse.swt.SWTError: No more handles [gtk_init_check() failed] while running eclipse on ubuntu канала Roel Van de Paar
Комментарии отсутствуют
Информация о видео
19 августа 2020 г. 15:39:13
00:04:29
Другие видео канала