[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform.swt] Re: SWT installallation on linux64

swt has a constant in its java implementation that indicates which library
version to look for, so if it's looking for swt-gtk-3347 then you're running
with the swt's java code from this version.

Running on linux shouldn't be any different than running on windows.  There
should be two swt plugin jars, one called
org.eclipse.swt_<eclipseVersion>.<swtVersion> which contains very little,
and the other called
org.eclipse.swt.<ws>.<os>.<arch>_<eclipseVersion>.<swtVersion> which
contains the platform-specific implementation.  If the swt versions on these
plugins indicate 3349 but at runtime it's looking for 3347 then you must be
running with an swt from somewhere else.  Check the Java Build Path for one
of your projects that depends on swt to see the location of the swt that
it's referencing.

If you're running your app as stand-alone (not as an eclipse plug-in) then
you can just put the swt platform-specific jar on your project's Java Build
Path and it should extract its matching libraries automatically at runtime.

HTH,
Grant


"Christine" <christine@xxxxxxxxxxxx> wrote in message
news:ad73fef96c56212702d158894e14204a$1@xxxxxxxxxxxxxxxxxx
>
> I'm now having a problem that I've had before, and I don't know what
> solved it then but moving jar files around finally did.
>
> the error is
>
> Exception in thread "main" java.lang.UnsatisfiedLinkError: no swt-gtk-3347
> or swt-gtk in swt.library.path, java.library.path or the jar file
> at org.eclipse.swt.internal.Library.loadLibrary(Library.java:219)
> at org.eclipse.swt.internal.Library.loadLibrary(Library.java:151)
> at org.eclipse.swt.internal.C.<clinit>(C.java:21)
> 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:128)
>
> I have jar files and .so files with 3349, not 3347. I had a 3347 file but
> removing that solved my problem a few days ago when I wanted to use swt in
> another project. Now it doesn't any more, in either project.
>
> Now what exactly do I need for swt, and what don't I need? On a windows pc
> in the office, putting swt.jar in the plugins directory was all I needed,
> but apparently in linux it's different? I'm at a loss here, help would be
> appreciated.....
>
> Christine
>