Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » eclipse 3.1M6: unable to run a SWT app
eclipse 3.1M6: unable to run a SWT app [message #453524] Thu, 07 April 2005 08:18 Go to next message
Eclipse UserFriend
Originally posted by: sweinsto.ukonline.co.uk

Hi,

I'm currently working on an application which use SWT.
I've tried to switch from eclipse 3.1M5 to eclipse 3.1M6. My project uses
the eclipse's libraries:
* org.eclipse.core.runtime_3.1.0.jar
* org.eclipse.jface_3.1.0.jar
* org.eclipse.swt_3.1.0.jar
* org.eclipse.ui.forms_3.1.0.jar

When I launch it through the context menu entry "Run as SWT application",
I get 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:1517)
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: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 com.mcafee.scmlov.App.main(App.java:57)

I have exactly the same problem when I run my application from the
command line.

In M5, there was an "external" shared library libswt-pi-gtk-3123.so but
in M6 this library has moved inside the swt jar.

Does someone know what is the right way for launching an SWT application
with M6.

Thanks in advance

Serge Weinstock
Re: eclipse 3.1M6: unable to run a SWT app [message #453525 is a reply to message #453524] Thu, 07 April 2005 08:45 Go to previous messageGo to next message
Christian Hauser is currently offline Christian HauserFriend
Messages: 189
Registered: July 2009
Senior Member
> When I launch it through the context menu entry "Run as SWT application",
> I get the following error:
> Exception in thread "main" java.lang.UnsatisfiedLinkError: no swt-pi-gtk-3128 in java.library.path

Same for me on any platform (WinXP, Mac OS X). I seem to have missed the
bug number, as this certainly has been reported.

I don't know, however, if this is due to the fact that I still use the
same workspace since 3.1M4.

Could anyone provide me with the related bug number, please?

Christian
Re: eclipse 3.1M6: unable to run a SWT app [message #453528 is a reply to message #453525] Thu, 07 April 2005 11:54 Go to previous messageGo to next message
Veronika Irvine is currently offline Veronika IrvineFriend
Messages: 1272
Registered: July 2009
Senior Member
SWT Launcher will not work for M6 and may be temporarily removed - See bug
88669 for details.

The following announcement was posted to the platform-releng-dev mailing
list::

SWT has moved to the new JAR'd format. The M6 format for Eclipse will be:

org.eclipse.swt._3.1.0.jar

plus one of ...

org.eclipse.swt.win32_3.1.0.jar

org.eclipse.swt.gtk_3.1.0.jar

org.eclipse.swt.gtk64_3.1.0.jar

org.eclipse.swt.motif_3.1.0.jar

org.eclipse.swt.carbon_3.1.0.jar

This will change for M7 to include the os and architecture (the final look
of this is still under discussion) :

org.eclipse.swt._3.1.0.jar

plus one of ...

org.eclipse.swt.linux.gtk.x86_3.1.0.jar

org.eclipse.swt.linux.gtk.x86_64_3.1.0.jar

org.eclipse.swt.solaris.gtk.sparc_3.1.0.jar

org.eclipse.swt.linux.motif.x86_3.1.0.jar

etc ...



There will also be a new Standalone SWT Download format:

swt.jar

dlls / libraries

licensing files

This is simplified and will no longer include multiple jars like swt-pi.jar,
swt-mozilla.jar etc. The format of the SWT Standalone downloads might change
for M7. We are investigating a mechanism for including the libraries in the
jar but we have not yet decided if this is feasible or desirable.

NOTE: SWT Launcher will not work for M6 and may be temporarily removed - See
bug 88669 for details.

For more details, please see Bug 88122.



"Christian Hauser" <christian.hauser@dvbern.ch> wrote in message
news:d32s6t$ei6$1@news.eclipse.org...
>> When I launch it through the context menu entry "Run as SWT application",
>> I get the following error:
>> Exception in thread "main" java.lang.UnsatisfiedLinkError: no
>> swt-pi-gtk-3128 in java.library.path
>
> Same for me on any platform (WinXP, Mac OS X). I seem to have missed the
> bug number, as this certainly has been reported.
>
> I don't know, however, if this is due to the fact that I still use the
> same workspace since 3.1M4.
>
> Could anyone provide me with the related bug number, please?
>
> Christian
Re: eclipse 3.1M6: unable to run a SWT app [message #453532 is a reply to message #453524] Thu, 07 April 2005 12:24 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: aaa.domain.invalid

Hi,

I removed the dll from the new jar and used the vmarg to specify the
library path to get this to work.

-Chhil

Serge Weinstock wrote:
> Hi,
>
> I'm currently working on an application which use SWT.
> I've tried to switch from eclipse 3.1M5 to eclipse 3.1M6. My project uses
> the eclipse's libraries:
> * org.eclipse.core.runtime_3.1.0.jar
> * org.eclipse.jface_3.1.0.jar
> * org.eclipse.swt_3.1.0.jar
> * org.eclipse.ui.forms_3.1.0.jar
>
> When I launch it through the context menu entry "Run as SWT application",
> I get 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:1517)
> 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: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 com.mcafee.scmlov.App.main(App.java:57)
>
> I have exactly the same problem when I run my application from the
> command line.
>
> In M5, there was an "external" shared library libswt-pi-gtk-3123.so but
> in M6 this library has moved inside the swt jar.
>
> Does someone know what is the right way for launching an SWT application
> with M6.
>
> Thanks in advance
>
> Serge Weinstock
>
Re: eclipse 3.1M6: unable to run a SWT app [message #453801 is a reply to message #453524] Sat, 09 April 2005 21:02 Go to previous messageGo to next message
James Leotta is currently offline James LeottaFriend
Messages: 202
Registered: July 2009
Senior Member
If you run the application as a java app instead of a swt app all will
work fine. I had the same problem and Eric Clayberg at
Instantiations.com came up with this suggestion an it worked. By the
way www.instantiations.com makes a great GUI builder for SWT.


Serge Weinstock wrote:
> Hi,
>
> I'm currently working on an application which use SWT.
> I've tried to switch from eclipse 3.1M5 to eclipse 3.1M6. My project uses
> the eclipse's libraries:
> * org.eclipse.core.runtime_3.1.0.jar
> * org.eclipse.jface_3.1.0.jar
> * org.eclipse.swt_3.1.0.jar
> * org.eclipse.ui.forms_3.1.0.jar
>
> When I launch it through the context menu entry "Run as SWT application",
> I get 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:1517)
> 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: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 com.mcafee.scmlov.App.main(App.java:57)
>
> I have exactly the same problem when I run my application from the
> command line.
>
> In M5, there was an "external" shared library libswt-pi-gtk-3123.so but
> in M6 this library has moved inside the swt jar.
>
> Does someone know what is the right way for launching an SWT application
> with M6.
>
> Thanks in advance
>
> Serge Weinstock
>
Re: eclipse 3.1M6: unable to run a SWT app [message #453805 is a reply to message #453801] Sat, 09 April 2005 23:18 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: bob.objfac.com

IIRC, Run as SWT app is broken in M6 because of the switch to the cool
new hey kid's let's put our entire plugin in a jar! fad. Good thing
there's a simple workaround.

Bob Foster

James Leotta wrote:
> If you run the application as a java app instead of a swt app all will
> work fine. I had the same problem and Eric Clayberg at
> Instantiations.com came up with this suggestion an it worked. By the
> way www.instantiations.com makes a great GUI builder for SWT.
>
>
> Serge Weinstock wrote:
>
>> Hi,
>>
>> I'm currently working on an application which use SWT.
>> I've tried to switch from eclipse 3.1M5 to eclipse 3.1M6. My project uses
>> the eclipse's libraries:
>> * org.eclipse.core.runtime_3.1.0.jar * org.eclipse.jface_3.1.0.jar
>> * org.eclipse.swt_3.1.0.jar
>> * org.eclipse.ui.forms_3.1.0.jar
>>
>> When I launch it through the context menu entry "Run as SWT application",
>> I get 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:1517)
>> 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: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 com.mcafee.scmlov.App.main(App.java:57)
>>
>> I have exactly the same problem when I run my application from the
>> command line.
>>
>> In M5, there was an "external" shared library libswt-pi-gtk-3123.so but
>> in M6 this library has moved inside the swt jar.
>>
>> Does someone know what is the right way for launching an SWT application
>> with M6.
>>
>> Thanks in advance
>>
>> Serge Weinstock
>>
Re: eclipse 3.1M6: unable to run a SWT app [message #453818 is a reply to message #453801] Mon, 11 April 2005 08:42 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: sweinsto.ukonline.co.uk

I've tried that and I have still the same problem.
Even by extracting the shared libraries from the jar and by adding a
-Djava.library.path=XXX argument to the VM, I can't run my program from
Eclipse.

Serge

On Sat, 09 Apr 2005 17:02:52 -0400, James Leotta wrote:

> If you run the application as a java app instead of a swt app all will
> work fine. I had the same problem and Eric Clayberg at
> Instantiations.com came up with this suggestion an it worked. By the
> way www.instantiations.com makes a great GUI builder for SWT.
>
>
> Serge Weinstock wrote:
>> Hi,
>>
>> I'm currently working on an application which use SWT.
>> I've tried to switch from eclipse 3.1M5 to eclipse 3.1M6. My project uses
>> the eclipse's libraries:
>> * org.eclipse.core.runtime_3.1.0.jar
>> * org.eclipse.jface_3.1.0.jar
>> * org.eclipse.swt_3.1.0.jar
>> * org.eclipse.ui.forms_3.1.0.jar
>>
>> When I launch it through the context menu entry "Run as SWT application",
>> I get 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:1517)
>> 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: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 com.mcafee.scmlov.App.main(App.java:57)
>>
>> I have exactly the same problem when I run my application from the
>> command line.
>>
>> In M5, there was an "external" shared library libswt-pi-gtk-3123.so but
>> in M6 this library has moved inside the swt jar.
>>
>> Does someone know what is the right way for launching an SWT application
>> with M6.
>>
>> Thanks in advance
>>
>> Serge Weinstock
>>
Re: eclipse 3.1M6: unable to run a SWT app [message #453821 is a reply to message #453818] Mon, 11 April 2005 13:39 Go to previous messageGo to next message
James Leotta is currently offline James LeottaFriend
Messages: 202
Registered: July 2009
Senior Member
Serge, did you place the three dll's in the winnt/system32 directory?
Serge Weinstock wrote:
> I've tried that and I have still the same problem.
> Even by extracting the shared libraries from the jar and by adding a
> -Djava.library.path=XXX argument to the VM, I can't run my program from
> Eclipse.
>
> Serge
>
> On Sat, 09 Apr 2005 17:02:52 -0400, James Leotta wrote:
>
>
>>If you run the application as a java app instead of a swt app all will
>>work fine. I had the same problem and Eric Clayberg at
>>Instantiations.com came up with this suggestion an it worked. By the
>>way www.instantiations.com makes a great GUI builder for SWT.
>>
>>
>>Serge Weinstock wrote:
>>
>>>Hi,
>>>
>>>I'm currently working on an application which use SWT.
>>>I've tried to switch from eclipse 3.1M5 to eclipse 3.1M6. My project uses
>>>the eclipse's libraries:
>>>* org.eclipse.core.runtime_3.1.0.jar
>>>* org.eclipse.jface_3.1.0.jar
>>>* org.eclipse.swt_3.1.0.jar
>>>* org.eclipse.ui.forms_3.1.0.jar
>>>
>>>When I launch it through the context menu entry "Run as SWT application",
>>>I get 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:1517)
>>> 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: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 com.mcafee.scmlov.App.main(App.java:57)
>>>
>>>I have exactly the same problem when I run my application from the
>>>command line.
>>>
>>> In M5, there was an "external" shared library libswt-pi-gtk-3123.so but
>>> in M6 this library has moved inside the swt jar.
>>>
>>>Does someone know what is the right way for launching an SWT application
>>>with M6.
>>>
>>>Thanks in advance
>>>
>>>Serge Weinstock
>>>
>
>
Re: eclipse 3.1M6: unable to run a SWT app [message #453828 is a reply to message #453821] Mon, 11 April 2005 15:12 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: sweinsto.ukonline.co.uk

No, I didn't as I'm currently developping on Linux.

The flag -Djava.library.path=path_to_my_swt_dlls_directory should avoid me
to have to put anything in the winnt/system32 directory.

In order to be sure I test my application on Windows and it works!

So the problem seems to be specific to linux/gtk2:
If I run from the command line: "java
-Djava.library.path=path_to_my_swt_dlls_directorypath_to_my_ swt_directory
-classpath=xxx myprogram.java", it works fine

But if I run it from eclipse with the option
-Djava.library.path=path_to_my_swt_dlls_directory, it doesn't work

On Mon, 11 Apr 2005 09:39:52 -0400, James Leotta wrote:

> Serge, did you place the three dll's in the winnt/system32 directory?
> Serge Weinstock wrote:
>> I've tried that and I have still the same problem.
>> Even by extracting the shared libraries from the jar and by adding a
>> -Djava.library.path=XXX argument to the VM, I can't run my program from
>> Eclipse.
>>
>> Serge
>>
>> On Sat, 09 Apr 2005 17:02:52 -0400, James Leotta wrote:
>>
>>
>>>If you run the application as a java app instead of a swt app all will
>>>work fine. I had the same problem and Eric Clayberg at
>>>Instantiations.com came up with this suggestion an it worked. By the
>>>way www.instantiations.com makes a great GUI builder for SWT.
>>>
>>>
>>>Serge Weinstock wrote:
>>>
>>>>Hi,
>>>>
>>>>I'm currently working on an application which use SWT.
>>>>I've tried to switch from eclipse 3.1M5 to eclipse 3.1M6. My project uses
>>>>the eclipse's libraries:
>>>>* org.eclipse.core.runtime_3.1.0.jar
>>>>* org.eclipse.jface_3.1.0.jar
>>>>* org.eclipse.swt_3.1.0.jar
>>>>* org.eclipse.ui.forms_3.1.0.jar
>>>>
>>>>When I launch it through the context menu entry "Run as SWT application",
>>>>I get 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:1517)
>>>> 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: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 com.mcafee.scmlov.App.main(App.java:57)
>>>>
>>>>I have exactly the same problem when I run my application from the
>>>>command line.
>>>>
>>>> In M5, there was an "external" shared library libswt-pi-gtk-3123.so but
>>>> in M6 this library has moved inside the swt jar.
>>>>
>>>>Does someone know what is the right way for launching an SWT application
>>>>with M6.
>>>>
>>>>Thanks in advance
>>>>
>>>>Serge Weinstock
>>>>
>>
>>
Re: eclipse 3.1M6: unable to run a SWT app [message #453829 is a reply to message #453828] Mon, 11 April 2005 15:30 Go to previous messageGo to next message
James Leotta is currently offline James LeottaFriend
Messages: 202
Registered: July 2009
Senior Member
Are you running it as a Java app and not a SWT App? The SWT app is broken.

Serge Weinstock wrote:
> No, I didn't as I'm currently developping on Linux.
>
> The flag -Djava.library.path=path_to_my_swt_dlls_directory should avoid me
> to have to put anything in the winnt/system32 directory.
>
> In order to be sure I test my application on Windows and it works!
>
> So the problem seems to be specific to linux/gtk2:
> If I run from the command line: "java
> -Djava.library.path=path_to_my_swt_dlls_directorypath_to_my_ swt_directory
> -classpath=xxx myprogram.java", it works fine
>
> But if I run it from eclipse with the option
> -Djava.library.path=path_to_my_swt_dlls_directory, it doesn't work
>
> On Mon, 11 Apr 2005 09:39:52 -0400, James Leotta wrote:
>
>
>>Serge, did you place the three dll's in the winnt/system32 directory?
>>Serge Weinstock wrote:
>>
>>>I've tried that and I have still the same problem.
>>>Even by extracting the shared libraries from the jar and by adding a
>>>-Djava.library.path=XXX argument to the VM, I can't run my program from
>>>Eclipse.
>>>
>>>Serge
>>>
>>>On Sat, 09 Apr 2005 17:02:52 -0400, James Leotta wrote:
>>>
>>>
>>>
>>>>If you run the application as a java app instead of a swt app all will
>>>>work fine. I had the same problem and Eric Clayberg at
>>>>Instantiations.com came up with this suggestion an it worked. By the
>>>>way www.instantiations.com makes a great GUI builder for SWT.
>>>>
>>>>
>>>>Serge Weinstock wrote:
>>>>
>>>>
>>>>>Hi,
>>>>>
>>>>>I'm currently working on an application which use SWT.
>>>>>I've tried to switch from eclipse 3.1M5 to eclipse 3.1M6. My project uses
>>>>>the eclipse's libraries:
>>>>>* org.eclipse.core.runtime_3.1.0.jar
>>>>>* org.eclipse.jface_3.1.0.jar
>>>>>* org.eclipse.swt_3.1.0.jar
>>>>>* org.eclipse.ui.forms_3.1.0.jar
>>>>>
>>>>>When I launch it through the context menu entry "Run as SWT application",
>>>>>I get 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:1517)
>>>>> 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: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 com.mcafee.scmlov.App.main(App.java:57)
>>>>>
>>>>>I have exactly the same problem when I run my application from the
>>>>>command line.
>>>>>
>>>>>In M5, there was an "external" shared library libswt-pi-gtk-3123.so but
>>>>>in M6 this library has moved inside the swt jar.
>>>>>
>>>>>Does someone know what is the right way for launching an SWT application
>>>>>with M6.
>>>>>
>>>>>Thanks in advance
>>>>>
>>>>>Serge Weinstock
>>>>>
>>>
>>>
>
Re: eclipse 3.1M6: unable to run a SWT app [message #453830 is a reply to message #453829] Mon, 11 April 2005 15:59 Go to previous message
Eclipse UserFriend
Originally posted by: sweinsto.ukonline.co.uk

Thanks, I've created a brand-new launch entry with the right command
line arguments and it works now!

Thanks

On Mon, 11 Apr 2005 11:30:49 -0400, James Leotta wrote:

> Are you running it as a Java app and not a SWT App? The SWT app is broken.
>
> Serge Weinstock wrote:
>> No, I didn't as I'm currently developping on Linux.
>>
>> The flag -Djava.library.path=path_to_my_swt_dlls_directory should avoid me
>> to have to put anything in the winnt/system32 directory.
>>
>> In order to be sure I test my application on Windows and it works!
>>
>> So the problem seems to be specific to linux/gtk2:
>> If I run from the command line: "java
>> -Djava.library.path=path_to_my_swt_dlls_directorypath_to_my_ swt_directory
>> -classpath=xxx myprogram.java", it works fine
>>
>> But if I run it from eclipse with the option
>> -Djava.library.path=path_to_my_swt_dlls_directory, it doesn't work
>>
>> On Mon, 11 Apr 2005 09:39:52 -0400, James Leotta wrote:
>>
>>
>>>Serge, did you place the three dll's in the winnt/system32 directory?
>>>Serge Weinstock wrote:
>>>
>>>>I've tried that and I have still the same problem.
>>>>Even by extracting the shared libraries from the jar and by adding a
>>>>-Djava.library.path=XXX argument to the VM, I can't run my program from
>>>>Eclipse.
>>>>
>>>>Serge
>>>>
>>>>On Sat, 09 Apr 2005 17:02:52 -0400, James Leotta wrote:
>>>>
>>>>
>>>>
>>>>>If you run the application as a java app instead of a swt app all will
>>>>>work fine. I had the same problem and Eric Clayberg at
>>>>>Instantiations.com came up with this suggestion an it worked. By the
>>>>>way www.instantiations.com makes a great GUI builder for SWT.
>>>>>
>>>>>
>>>>>Serge Weinstock wrote:
>>>>>
>>>>>
>>>>>>Hi,
>>>>>>
>>>>>>I'm currently working on an application which use SWT.
>>>>>>I've tried to switch from eclipse 3.1M5 to eclipse 3.1M6. My project uses
>>>>>>the eclipse's libraries:
>>>>>>* org.eclipse.core.runtime_3.1.0.jar
>>>>>>* org.eclipse.jface_3.1.0.jar
>>>>>>* org.eclipse.swt_3.1.0.jar
>>>>>>* org.eclipse.ui.forms_3.1.0.jar
>>>>>>
>>>>>>When I launch it through the context menu entry "Run as SWT application",
>>>>>>I get 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:1517)
>>>>>> 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: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 com.mcafee.scmlov.App.main(App.java:57)
>>>>>>
>>>>>>I have exactly the same problem when I run my application from the
>>>>>>command line.
>>>>>>
>>>>>>In M5, there was an "external" shared library libswt-pi-gtk-3123.so but
>>>>>>in M6 this library has moved inside the swt jar.
>>>>>>
>>>>>>Does someone know what is the right way for launching an SWT application
>>>>>>with M6.
>>>>>>
>>>>>>Thanks in advance
>>>>>>
>>>>>>Serge Weinstock
>>>>>>
>>>>
>>>>
>>
Previous Topic:Why do "PreferenceNode" trigger the exception ?
Next Topic:How to change button background color?
Goto Forum:
  


Current Time: Thu Apr 25 23:05:49 GMT 2024

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

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

Back to the top