...
If you start JOE (./bin/jobeditor.sh) on Unix and you get the error like
Can't load library: /tmp/swtlib-32/libswt-pi-gtk.so
Code Block |
---|
Exception in thread "main" java.lang.UnsatisfiedLinkError: Could not load SWT library. Reasons: no swt-pi-gtk-3655 in java.library.path no swt-pi-gtk in java.library.path /tmp/swtlib-32/libswt-pi-gtk-3655.so: libgtk-x11-2.0.so.0: cannot open shared object file: No such file or directory Can't load library: /tmp/swtlib-32/libswt-pi-gtk.so |
...
Install the missing libraries and try it again.
org.eclipse.swt.SWTError: No more handles gtk_init_check() failed
Code Block |
---|
Exception in thread "main" org.eclipse.swt.SWTError: No more handles [gtk_init_check() failed] at org.eclipse.swt.SWT.error(Unknown Source) at org.eclipse.swt.widgets.Display.createDisplay(Unknown Source) at org.eclipse.swt.widgets.Display.create(Unknown Source) at org.eclipse.swt.graphics.Device.<init>(Unknown Source) at org.eclipse.swt.widgets.Display.<init>(Unknown Source) at org.eclipse.swt.widgets.Display.<init>(Unknown Source) at org.eclipse.swt.widgets.Display.getDefault(Unknown Source) at sos.scheduler.editor.app.Editor.main(Editor.java:102) |
gtk_init_check() only fails if it cannot open a socket to the X server.
The connection to the X server can fail in the following ways:
- The DISPLAY environment variable is unset
- The X server is down
- The socket to the X server is on too high of a file descriptor