Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Display error on Linux
Display error on Linux [message #436292] Fri, 14 May 2004 15:22 Go to next message
Mike is currently offline MikeFriend
Messages: 49
Registered: July 2009
Member
Hey I am getting this error simply when trying to make a new Display()

Exception in thread "main" java.lang.UnsatisfiedLinkError: no
swt-pi-gtk-2135 in java.library.path
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1491)
at java.lang.Runtime.loadLibrary0(Runtime.java:788)
at java.lang.System.loadLibrary(System.java:834)
at org.eclipse.swt.internal.Library.loadLibrary(Library.java:10 8)
at org.eclipse.swt.internal.gtk.OS.<clinit>(OS.java:19)
at org.eclipse.swt.widgets.Display.createDisplay(Display.java:4 82)
at org.eclipse.swt.widgets.Display.create(Display.java:469)
at org.eclipse.swt.graphics.Device.<init>(Device.java:111)
at org.eclipse.swt.widgets.Display.<init>(Display.java:303)
at org.eclipse.swt.widgets.Display.<init>(Display.java:299)
at LayoutExample.main(LayoutExample.java:8)

Anyone have any idea on this one?

The code i'm running is from one of the examples (LayoutExample.java).
I've included swt.jar, jface.jar, and swt-pi.jar in my build path. I'm
using java 1.4.2_4 and eclipse 2.1.2 . Any help would be great. Thanks.

-Mike
Re: Display error on Linux [message #436293 is a reply to message #436292] Fri, 14 May 2004 17:58 Go to previous message
Eclipse UserFriend
Originally posted by: v.j.b

> java.lang.UnsatisfiedLinkError: no swt-pi-gtk-2135 in java.library.path

have you actually looked at the exception? as it says, it can't find
'swt-pi-gtk-2135' on your 'library' path. This is the '.so' file which can
be found in the same directory as the swt.jar, but then under 'os' branch.
Place that file, together with the other files in that directory (you don't
need all of em) on your librarypath, and everything should work fine.

If you can't get it right, you can place those files in your project
directory aswell, but that's just a temporary solution.
Previous Topic:Combo-button
Next Topic:Display.getCurrent().getDPI() always equals 96?
Goto Forum:
  


Current Time: Fri Apr 19 20:47:37 GMT 2024

Powered by FUDForum. Page generated in 0.02964 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top