Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » no swt-pi-gtk-3128 in java.library.path
no swt-pi-gtk-3128 in java.library.path [message #454101] Sun, 17 April 2005 16:41 Go to next message
Simon Meaden is currently offline Simon MeadenFriend
Messages: 10
Registered: July 2009
Junior Member
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.
Re: no swt-pi-gtk-3128 in java.library.path [message #454340 is a reply to message #454101] Wed, 20 April 2005 19:26 Go to previous messageGo to next message
Max Stepanov is currently offline Max StepanovFriend
Messages: 3
Registered: July 2009
Junior Member
Unfortunately I had the same problem.
The lastest resort was downgrade to 3.15a.

"Simon Meaden" <simonmeaden@blueyonder.co.uk> wrote in message
news:d3u430$rin$1@news.eclipse.org...
> 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.
Re: no swt-pi-gtk-3128 in java.library.path [message #454488 is a reply to message #454101] Fri, 22 April 2005 13:28 Go to previous message
Eclipse UserFriend
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
Previous Topic:SWT control that support HTML text?
Next Topic:ComboBoxCellEditor
Goto Forum:
  


Current Time: Wed Mar 03 09:34:36 GMT 2021

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

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

Back to the top