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 04: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 #453828 is a reply to message #453821] |
Mon, 11 April 2005 11: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 11:30   |
Eclipse User |
|
|
|
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 11: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: Tue Jul 15 20:02:41 EDT 2025
Powered by FUDForum. Page generated in 0.06124 seconds
|