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 |
Eclipse User |
|
|
|
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 #453532 is a reply to message #453524] |
Thu, 07 April 2005 12:24 |
Eclipse User |
|
|
|
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 #453805 is a reply to message #453801] |
Sat, 09 April 2005 23:18 |
Eclipse User |
|
|
|
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 |
Eclipse User |
|
|
|
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 #453828 is a reply to message #453821] |
Mon, 11 April 2005 15:12 |
Eclipse User |
|
|
|
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 |
James Leotta 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 |
Eclipse User |
|
|
|
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
>>>>>>
>>>>
>>>>
>>
|
|
|
Goto Forum:
Current Time: Thu Apr 25 23:05:49 GMT 2024
Powered by FUDForum. Page generated in 0.04309 seconds
|