Ubuntu: SWT App Can't Load GTK Library

Posted by Nifty255 on Stack Overflow See other posts from Stack Overflow or by Nifty255
Published on 2012-11-29T16:48:37Z Indexed on 2012/11/29 17:04 UTC
Read the original article Hit count: 299

Filed under:
|
|
|
|

I have supplied the Linux SWT jar and packaged my app in Eclipse to include swt.jar inside my app's jar. When I try to run it on Ubuntu, I get the following error text (posting only cause):

Caused by: java.lang.UnsatisfiedLinkError: Could not load SWT library. Reasons:

no swt-pi-gtk-4234 in java.library.path

no swt-pi-gtk in java.library.path

/home/nifty/.swt/lib/linux/x86/libswt-pi-gtk-4234.so: libgtk-x11-2.0.so.0: cannot open shared object file: No such file or directory

Can't load library: /home/nifty/.swt/lib/linux/x86/libswt-pi-gtk.so

This indicates to me it can't load a GTK file, but anything beyond that, and I'm at a loss. I'm only using Ubuntu to test my app, so I know very little.

© Stack Overflow or respective owner

Related posts about java

Related posts about linux