Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RE: [platform-swt-dev] Unsatisfied link error

Title: RE: [platform-swt-dev] Unsatisfied link error

Try:

$ export LD_LIBRARY_PATH="$ECLIPSE/plugins/org.eclipse.swt.gtk_2.1.1/os/linux/x86"
$ java .... (run your program)

(assuming you're on Linux)

Or:

$ java -Djava.library.path=$ECLIPSE/plugins/org.eclipse.swt.gtk_2.1.1/os/linux/x86 ....


In the future, please search the newsgroup as questions like this have been asked and answered many times there.


Regards,

Dave

> -----Original Message-----
> From: Ben Srour [mailto:srour@xxxxxxxxxxx]
> Sent: Thursday, September 11, 2003 11:46 AM
> To: platform-swt-dev@xxxxxxxxxxx
> Subject: [platform-swt-dev] Unsatisfied link error
>
>
> Hello,
>
> I am just trying to start development with SWT and I am
> having trouble running my project. I have included all of the
> swt related jars that I can find in
> $ECLIPSE/plugins/plugins/org.eclipse.swt.gtk_2.1.1/ws/gtk, I
> even included the shared object files from
>       $ECLIPSE/plugins/org.eclipse.swt.gtk_2.1.1/os/linux/x86
> to no avail. I get an unsatisfied link error with the
> following message:
>
> 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:108)
>       at org.eclipse.swt.internal.gtk.OS.<clinit>(OS.java:18)
>       at
> org.eclipse.swt.widgets.Display.createDisplay(Display.java:482)
>       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 org.upl.vgnet.ui.VGMain.main(VGMain.java:21)
>
> Any advice would be appreciated, thanks!
>
> Ben
>
>
>
> --
> Ben Srour             University of Wisconsin-Madison
> srour@xxxxxxxxxxx     Phone: 608 345 3826
>
> _______________________________________________
> platform-swt-dev mailing list
> platform-swt-dev@xxxxxxxxxxx
> http://dev.eclipse.org/mailman/listinfo/platfo> rm-swt-dev
>


Back to the top