Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [equinox-dev] Update/uninstall SWT application in Equinox gives UnsatisfiedLinkError

Not sure why my mail bounced. Trying to send again.
Tom


----- Forwarded by Thomas Watson/Austin/IBM on 08/28/2009 08:08 AM -----


From:

Thomas Watson/Austin/IBM

To:

Equinox development mailing list <equinox-dev@xxxxxxxxxxx>

Date:

08/27/2009 08:47 AM

Subject:

RE: [equinox-dev] Update/uninstall SWT application in Equinox gives UnsatisfiedLinkError



Also see https://bugs.eclipse.org/bugs/show_bug.cgi?id=201700

Are you using SWT on top of Equinox or another OSGi Framework implementation? I would not expect issues on Equinox because we should be able to find the SWT libraries without the need of Bundle-NativeCode header. If you are seeing this issue while running on the Equinox framework then please open a bug against RT->Equinox->Framework (https://bugs.eclipse.org/bugs/enter_bug.cgi?product=Equinox) and give steps to reprodice.

Note that you will need a different SWT fragment for each arch/os that you want to run SWT on because each SWT fragment contains the necessary native library for a different platform. Also note that updating bundles with native code is always a dicing situation in OSGi. Java VMs are notoriously bad at unloading native libraries loaded by custom class loaders (such as OSGi). Each time you update such a bundle that has loaded the native code you are likely leaving behind a loaded library in memory that probably will not go away. Eventually you WILL run out of memory.

Tom



Inactive hide details for Vidya Vadke ---08/27/2009 06:47:15 AM---Hi David,Vidya Vadke ---08/27/2009 06:47:15 AM---Hi David,


From:

Vidya Vadke <vidya_vadke@xxxxxxxxxxxxxxxx>

To:

Equinox development mailing list <equinox-dev@xxxxxxxxxxx>

Date:

08/27/2009 06:47 AM

Subject:

RE: [equinox-dev] Update/uninstall SWT application in Equinox gives UnsatisfiedLinkError





Hi David,

Yes, SWT uses native dlls. And my problem is solved by using Bundle-NativeCode.

Thanks,
-Vidya

From: equinox-dev-bounces@xxxxxxxxxxx [mailto:equinox-dev-bounces@xxxxxxxxxxx] On Behalf Of David Conde
Sent:
Thursday, August 27, 2009 2:30 PM
To:
'Equinox development mailing list'
Subject:
RE: [equinox-dev] Update/uninstall SWT application in Equinox gives UnsatisfiedLinkError

Hi,

I do not know if SWT uses native libraries, if it uses then you should include them in Manifest.MF with the Bundle-NativeCode: header, you can also try to fix the java.library.path in the command line with your native library path, when you launch Equinox.

I got a similar Exception because I could not load a native library in Ubuntu.


Regards

David

De: equinox-dev-bounces@xxxxxxxxxxx [mailto:equinox-dev-bounces@xxxxxxxxxxx] En nombre de Vidya Vadke
Enviado el:
jueves, 27 de agosto de 2009 10:50
Para:
equinox-dev@xxxxxxxxxxx
Asunto:
[equinox-dev] Update/uninstall SWT application in Equinox gives UnsatisfiedLinkError


Hi,
I am trying to run an SWT application in OSGi environment. Install/start bundle works fine. But when I update the bundle or try to uninstall-install and start again, I get java.lang.UnsatisfiedLinkError - no swt-win32-3550 in java.library.path.
I have tried putting swt.jar in classpath, extracting swt.jar and putting swt related dlls in windows path, also in jre/bin directory. Still uninstall-install works for the first time. If is try the same once more, it again gives the same error.
Any help towards solving this problem would be appreciated.

Regards,
-Vidya

DISCLAIMER ========== This e-mail may contain privileged and confidential information which is the property of Persistent Systems Ltd. It is intended only for the use of the individual or entity to which it is addressed. If you are not the intended recipient, you are not authorized to read, retain, copy, print, distribute or use this message. If you have received this communication in error, please notify the sender and delete all copies of this message. Persistent Systems Ltd. does not accept any liability for virus infected mails.

DISCLAIMER ========== This e-mail may contain privileged and confidential information which is the property of Persistent Systems Ltd. It is intended only for the use of the individual or entity to which it is addressed. If you are not the intended recipient, you are not authorized to read, retain, copy, print, distribute or use this message. If you have received this communication in error, please notify the sender and delete all copies of this message. Persistent Systems Ltd. does not accept any liability for virus infected mails._______________________________________________
equinox-dev mailing list
equinox-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/equinox-dev

GIF image

GIF image


Back to the top