|
|
Re: no swt-pi-gtk-3128 in java.library.path [message #454488 is a reply to message #454101] |
Fri, 22 April 2005 13:28 |
Eclipse User |
|
|
|
Originally posted by: a41m.e.klswlff.spamgourmet.com
Simon Meaden wrote:
> I know that similar messages have appeared before but I cannot get any
> of their solutions to work. I have recently upgraded to 3.1M6 and my SWT
> applications no longer runs. They come up with the following error.
>
> Exception in thread "main" java.lang.UnsatisfiedLinkError: no
> swt-pi-gtk-3128 in java.library.path
> at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1682)
> at java.lang.Runtime.loadLibrary0(Runtime.java:822)
> at java.lang.System.loadLibrary(System.java:992)
> at org.eclipse.swt.internal.Library.loadLibrary(Library.java:12 3)
> at org.eclipse.swt.internal.gtk.OS.<clinit>(OS.java:19)
> at org.eclipse.swt.internal.Converter.wcsToMbcs(Converter.java: 63)
> at org.eclipse.swt.internal.Converter.wcsToMbcs(Converter.java: 54)
> at org.eclipse.swt.widgets.Display.<clinit>(Display.java:122)
> at org.simonsoft.graphics.swt.TestSWTXPM.main(TestSWTXPM.java:1 23)
>
> I have tried attaching the libswt*.so files using the
> -Djava.library.path method, I have tried adding the path to
> LD_LIBRARY_PATH and into /etc/ld.so.conf (I use Linux dist Fedora Core
> 3), I linked the files into java/jre/lib as someone suggested and even
> tried adding them into the project directory but I always get the same
> error. I don't want to return to 3.1M4 unless I need to but I need my
> project working again.
I exctracted libswt-pi-gtk-3128.so and libswt-gtk-3128.so from
org.eclipse.swt.gtk-3.1.0.jar into org.eclipse.swt.gtk_3.1.0/os/linux/x86.
Being shared libraries they have to be accessible to the dynamic linker
and must not be hidden in a jar-file.
Klaus Wulff
|
|
|
Powered by
FUDForum. Page generated in 0.03368 seconds