Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » run SWT application in 3.1M6
run SWT application in 3.1M6 [message #453866] Tue, 12 April 2005 22:00 Go to next message
Peter Xu is currently offline Peter XuFriend
Messages: 3
Registered: July 2009
Junior Member
I have some SWT applications in a java project, which runs fine in M5a, when
I do alt-shift-X and then S.
Now when I do the same in M6, i got

Exception in thread "main" java.lang.UnsatisfiedLinkError: no swt-win32-3128
in java.library.path

at java.lang.ClassLoader.loadLibrary(Unknown Source)

at java.lang.Runtime.loadLibrary0(Unknown Source)

at java.lang.System.loadLibrary(Unknown Source)

at org.eclipse.swt.internal.Library.loadLibrary(Library.java:12 3)

at org.eclipse.swt.internal.win32.OS.<clinit>(OS.java:18)

at org.eclipse.swt.widgets.Display.<clinit>(Display.java:125)

at com.peterxu.swt.ShellAPI.dialogShell(ShellAPI.java:299)

at com.peterxu.swt.ShellAPI.main(ShellAPI.java:45



I believe this has to do with the fact in M6, the plugins are packaged as
Jar. Apprenetly, some link to the the dll is broken.

Has anyone tried this, what is the workaround?
Re: run SWT application in 3.1M6 [message #453871 is a reply to message #453866] Wed, 13 April 2005 13:02 Go to previous messageGo to next message
James Leotta is currently offline James LeottaFriend
Messages: 202
Registered: July 2009
Senior Member
Peter you need to extract the three dll's from the jar file and put them
in the winnt/system32 directory. Then you need to run the application as
a Java application - not a SWT application since running it as such will
not load the dll's. If you have your application set up in the Run
environment delete it and rerun it as a Java app.

Peter Xu wrote:
> I have some SWT applications in a java project, which runs fine in M5a, when
> I do alt-shift-X and then S.
> Now when I do the same in M6, i got
>
> Exception in thread "main" java.lang.UnsatisfiedLinkError: no swt-win32-3128
> in java.library.path
>
> at java.lang.ClassLoader.loadLibrary(Unknown Source)
>
> at java.lang.Runtime.loadLibrary0(Unknown Source)
>
> at java.lang.System.loadLibrary(Unknown Source)
>
> at org.eclipse.swt.internal.Library.loadLibrary(Library.java:12 3)
>
> at org.eclipse.swt.internal.win32.OS.<clinit>(OS.java:18)
>
> at org.eclipse.swt.widgets.Display.<clinit>(Display.java:125)
>
> at com.peterxu.swt.ShellAPI.dialogShell(ShellAPI.java:299)
>
> at com.peterxu.swt.ShellAPI.main(ShellAPI.java:45
>
>
>
> I believe this has to do with the fact in M6, the plugins are packaged as
> Jar. Apprenetly, some link to the the dll is broken.
>
> Has anyone tried this, what is the workaround?
>
>
Re: run SWT application in 3.1M6 [message #453909 is a reply to message #453871] Wed, 13 April 2005 17:42 Go to previous message
Veronika Irvine is currently offline Veronika IrvineFriend
Messages: 1272
Registered: July 2009
Senior Member
This is a temporary work around. The Run As SWT Application should be fixed
for 3.1 M7.

See:

https://bugs.eclipse.org/bugs/show_bug.cgi?id=88669


"James Leotta" <jleotta@bascom.com> wrote in message
news:d3j59u$qh3$1@news.eclipse.org...
> Peter you need to extract the three dll's from the jar file and put them
> in the winnt/system32 directory. Then you need to run the application as a
> Java application - not a SWT application since running it as such will not
> load the dll's. If you have your application set up in the Run
> environment delete it and rerun it as a Java app.
>
> Peter Xu wrote:
>> I have some SWT applications in a java project, which runs fine in M5a,
>> when
>> I do alt-shift-X and then S.
>> Now when I do the same in M6, i got
>>
>> Exception in thread "main" java.lang.UnsatisfiedLinkError: no
>> swt-win32-3128
>> in java.library.path
>>
>> at java.lang.ClassLoader.loadLibrary(Unknown Source)
>>
>> at java.lang.Runtime.loadLibrary0(Unknown Source)
>>
>> at java.lang.System.loadLibrary(Unknown Source)
>>
>> at org.eclipse.swt.internal.Library.loadLibrary(Library.java:12 3)
>>
>> at org.eclipse.swt.internal.win32.OS.<clinit>(OS.java:18)
>>
>> at org.eclipse.swt.widgets.Display.<clinit>(Display.java:125)
>>
>> at com.peterxu.swt.ShellAPI.dialogShell(ShellAPI.java:299)
>>
>> at com.peterxu.swt.ShellAPI.main(ShellAPI.java:45
>>
>>
>>
>> I believe this has to do with the fact in M6, the plugins are packaged as
>> Jar. Apprenetly, some link to the the dll is broken.
>>
>> Has anyone tried this, what is the workaround?
>>
Previous Topic:negative values in spinner?
Next Topic:Cursor in an editable table
Goto Forum:
  


Current Time: Thu Apr 25 04:14:54 GMT 2024

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

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

Back to the top