Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Jan 22, 2024 9:35:30 PM
Jamie_Gregory
Apr 1, 2021 6:10:54 AM
Summary
When trying to use the command line on a "headless" Linux system (system without display), it fails with the exception:
!ENTRY org.eclipse.osgi 4 0 2017-11-14 09:13:06.080 !MESSAGE Application error !STACK 1 org.eclipse.swt.SWTError: No more handles [gtk_init_check() failed] at org.eclipse.swt.SWT.error(SWT.java:4467) at org.eclipse.swt.widgets.Display.createDisplay(Display.java:934)
Install xvfb:
> yum install xorg-x11-server-Xvfb
Modify the script launching the command line and add the lines:
> export DISPLAY=:1 > Xvfb :1 -screen 0 1024x768x16 &