Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » SWT runtime library not found on GTK under 3.1M5A
SWT runtime library not found on GTK under 3.1M5A [message #451857] Wed, 09 March 2005 19:14 Go to next message
Mark Powell is currently offline Mark PowellFriend
Messages: 14
Registered: July 2009
Junior Member
Is anyone else having this problem?

Action: compile a SWT snippet, try to run it as an SWT application from the
Eclipse 3.1M5A workbench on Linux/GTK.
Result: java.lang.UnsatisfiedLinkError: no swt-pi-gtk-3116 in
java.library.path

Now I _know_ that the LD_LIBRARY_PATH needs to be set to pick this up, so
this isn't a
newbie lack of knowledge on my part. It may be a stupid mistake on my part,
but it isn't
the stupid mistake that's on the SWT FAQ :)

The funny thing is is that when I set the java.library.path to include the
directory where the swt-pi library
sits, it still can't find it. Still funnier is that in this directory there
is a library called:
libswt-pi-gtk-3123.so

which is different from what it is looking for above (gtk-3116).

So what's up with that?

Thanks,
Mark Powell

--
(My correspondence does not reflect the opinions of the Jet Propulsion
Laboratory, NASA, or Caltech, etc., etc.)
Accessible#textSelectionChanged() does nothing [message #451858 is a reply to message #451857] Wed, 09 March 2005 19:41 Go to previous messageGo to next message
adrian is currently offline adrianFriend
Messages: 26
Registered: July 2009
Junior Member
I'm writing a custom text-edit widget in SWT. Eclipse R3.0.1, Windows.
I can't get JAWS 6 to read my text selections. I noticed that sending:

getAccessible().textSelectionChanged();

cannot accomplish much, as the method
org.eclipse.swt.accessibility.Accessible.java #textSelectionChanged()
does nothing.

How can I inform the accessibility clients of changes in the text
selections, so that they are picked up and, I presume, these clients can
subsequently use getSelectionRange(AccessibleTextEvent e) in my
registered AccessibleTextListener in order to read the selected text?

Microsoft's INSPECT doesn't seem aware of any text selection in my
widget either.
Re: SWT runtime library not found on GTK under 3.1M5A [message #451860 is a reply to message #451857] Wed, 09 March 2005 19:47 Go to previous messageGo to next message
Mark Powell is currently offline Mark PowellFriend
Messages: 14
Registered: July 2009
Junior Member
Additional to my original post:

I see that in Eclipse 3.1M4 the gtk-3116 library is the version that shipped
with the SWT plugin.
Also, running a SWT snippet under 3.1M4 on Linux/GTK works fine.

Mark

"Mark Powell" <Mark.Powell@jpl.nasa.gov> wrote in message
news:d0nhu2$csi$1@www.eclipse.org...
> Is anyone else having this problem?
>
> Action: compile a SWT snippet, try to run it as an SWT application from
> the Eclipse 3.1M5A workbench on Linux/GTK.
> Result: java.lang.UnsatisfiedLinkError: no swt-pi-gtk-3116 in
> java.library.path
>
> Now I _know_ that the LD_LIBRARY_PATH needs to be set to pick this up, so
> this isn't a
> newbie lack of knowledge on my part. It may be a stupid mistake on my
> part, but it isn't
> the stupid mistake that's on the SWT FAQ :)
>
> The funny thing is is that when I set the java.library.path to include the
> directory where the swt-pi library
> sits, it still can't find it. Still funnier is that in this directory
> there is a library called:
> libswt-pi-gtk-3123.so
>
> which is different from what it is looking for above (gtk-3116).
>
> So what's up with that?
>
> Thanks,
> Mark Powell
>
> --
> (My correspondence does not reflect the opinions of the Jet Propulsion
> Laboratory, NASA, or Caltech, etc., etc.)
>
Re: SWT runtime library not found on GTK under 3.1M5A [message #451862 is a reply to message #451857] Wed, 09 March 2005 19:58 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: paull.NOSPAMcodetelligence.com

Check that your project properties Java Build Path!Libraries list of swt
libs has them in the M5a directories and not the M4 directories?

Paul
"Mark Powell" <Mark.Powell@jpl.nasa.gov> wrote in message
news:d0nhu2$csi$1@www.eclipse.org...
> Is anyone else having this problem?
>
> Action: compile a SWT snippet, try to run it as an SWT application from
> the Eclipse 3.1M5A workbench on Linux/GTK.
> Result: java.lang.UnsatisfiedLinkError: no swt-pi-gtk-3116 in
> java.library.path
>
> Now I _know_ that the LD_LIBRARY_PATH needs to be set to pick this up, so
> this isn't a
> newbie lack of knowledge on my part. It may be a stupid mistake on my
> part, but it isn't
> the stupid mistake that's on the SWT FAQ :)
>
> The funny thing is is that when I set the java.library.path to include the
> directory where the swt-pi library
> sits, it still can't find it. Still funnier is that in this directory
> there is a library called:
> libswt-pi-gtk-3123.so
>
> which is different from what it is looking for above (gtk-3116).
>
> So what's up with that?
>
> Thanks,
> Mark Powell
>
> --
> (My correspondence does not reflect the opinions of the Jet Propulsion
> Laboratory, NASA, or Caltech, etc., etc.)
>
Re: SWT runtime library not found on GTK under 3.1M5A [message #451864 is a reply to message #451860] Wed, 09 March 2005 21:34 Go to previous messageGo to next message
Billy Biggs is currently offline Billy BiggsFriend
Messages: 94
Registered: July 2009
Member
Mark Powell wrote:
> Additional to my original post:
>
> I see that in Eclipse 3.1M4 the gtk-3116 library is the version that shipped
> with the SWT plugin.
> Also, running a SWT snippet under 3.1M4 on Linux/GTK works fine.
>
> Mark
>
> "Mark Powell" <Mark.Powell@jpl.nasa.gov> wrote in message
> news:d0nhu2$csi$1@www.eclipse.org...
>
>>Is anyone else having this problem?
>>
>>Action: compile a SWT snippet, try to run it as an SWT application from
>>the Eclipse 3.1M5A workbench on Linux/GTK.
>>Result: java.lang.UnsatisfiedLinkError: no swt-pi-gtk-3116 in
>>java.library.path
>>
>>Now I _know_ that the LD_LIBRARY_PATH needs to be set to pick this up, so
>>this isn't a
>>newbie lack of knowledge on my part. It may be a stupid mistake on my
>>part, but it isn't
>>the stupid mistake that's on the SWT FAQ :)
>>
>>The funny thing is is that when I set the java.library.path to include the
>>directory where the swt-pi library
>>sits, it still can't find it. Still funnier is that in this directory
>>there is a library called:
>>libswt-pi-gtk-3123.so
>>
>>which is different from what it is looking for above (gtk-3116).

Make sure that you have the jar files in your classpath that match
the libraries you're looking for. It looks like you're using SWT from
3.1M4 but with the library directory for SWT from 3.1M5a.

-Billy
Re: SWT runtime library not found on GTK under 3.1M5A [message #451866 is a reply to message #451862] Wed, 09 March 2005 22:26 Go to previous message
Mark Powell is currently offline Mark PowellFriend
Messages: 14
Registered: July 2009
Junior Member
Paul,

Thanks, your guess was correct...someone else on my team had put the swt-pi
jar file on the build path Libraries list to work around a bug with building
plug-ins where folks are extending Canvas (this one is already filed in
Bugzilla). I removed it temporarily and my problem is solved.

Thanks much!

Mark

"Paul L" <paull@NOSPAMcodetelligence.com> wrote in message
news:d0nkf9$pfg$1@www.eclipse.org...
> Check that your project properties Java Build Path!Libraries list of swt
> libs has them in the M5a directories and not the M4 directories?
>
> Paul
> "Mark Powell" <Mark.Powell@jpl.nasa.gov> wrote in message
> news:d0nhu2$csi$1@www.eclipse.org...
>> Is anyone else having this problem?
>>
>> Action: compile a SWT snippet, try to run it as an SWT application from
>> the Eclipse 3.1M5A workbench on Linux/GTK.
>> Result: java.lang.UnsatisfiedLinkError: no swt-pi-gtk-3116 in
>> java.library.path
>>
>> Now I _know_ that the LD_LIBRARY_PATH needs to be set to pick this up, so
>> this isn't a
>> newbie lack of knowledge on my part. It may be a stupid mistake on my
>> part, but it isn't
>> the stupid mistake that's on the SWT FAQ :)
>>
>> The funny thing is is that when I set the java.library.path to include
>> the directory where the swt-pi library
>> sits, it still can't find it. Still funnier is that in this directory
>> there is a library called:
>> libswt-pi-gtk-3123.so
>>
>> which is different from what it is looking for above (gtk-3116).
>>
>> So what's up with that?
>>
>> Thanks,
>> Mark Powell
>>
>> --
>> (My correspondence does not reflect the opinions of the Jet Propulsion
>> Laboratory, NASA, or Caltech, etc., etc.)
>>
>
>
Previous Topic:event.doit in DragFinished
Next Topic:Is this a bug?
Goto Forum:
  


Current Time: Thu Apr 25 09:43:27 GMT 2024

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

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

Back to the top