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

the shared object has to be put in the library path, you can:
1) prior running eclipse (or your app), use:
export LD_LIBRARY_PATH=
$ECLIPSE/plugins/org.eclipse.swt.gtk_2.1.1/os/linux/x86
2) assuming your VM is sun JDK 1.4.x:
cp $ECLIPSE/plugins/org.eclipse.swt.gtk_2.1.1/os/linux/x86/* 
$JAVA/jre/lib/i386/client/
with others VM we can copy to $JAVA/jre/bin/ 

Good luck and use the newsgroup for future question on how to use SWT, 
check our FAQ also can help you with this kind of problem.

Felipe







Ben Srour <srour@xxxxxxxxxxx>
Sent by: platform-swt-dev-admin@xxxxxxxxxxx
09/11/2003 12:45 PM
Please respond to platform-swt-dev
 
        To:     platform-swt-dev@xxxxxxxxxxx
        cc: 
        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/platform-swt-dev




Back to the top