Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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

then is a library is missing which that is required by libswt-pi-gtk-3655. requires so.

Type

Code Block
 ldd /tmp/swtlib-32/libswt-pi-gtk-3655.so

So you can see This should make visible which libraries are missing.

...

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 serverServer.

The We know two situations in which the connection to the X server can fail in the following ways:Server fails:

  1. You want to start JOE from Windows via SSH
    • The X11 tunnel is not established
      For example if you use PuTTy then the X11 forwarding is per default off. Navigate in the PuTTy connection settings to Connection->SSH->X11 and activate the checkbox "Enable X11 forwarding".
    • A local X server is not started
      For example you can install Xming as local X server for Windows.
  2. You want to start JOE from Ubuntu 16.04 with installed X server libraries via SSH
    • It seems the SSH client has errors. Install the SSH client again

      Code Block
      languagebash
      sudo apt -y install ssh
  3. The DISPLAY environment variable is unset
  4. The X server is down
  5. The socket to the X server is on too high of a file descriptor