SWT applet: swt-win32-3650.dll already loaded in another classloader

Posted by kilonet on Stack Overflow See other posts from Stack Overflow or by kilonet
Published on 2010-06-08T13:19:29Z Indexed on 2010/06/08 13:22 UTC
Read the original article Hit count: 626

Filed under:
|
|

I have multiple pages with java applet written with SWT. The problem is, applet loads only on first page, to load it on another page i need restart browser, otherwise i get following error:

Exception in thread "Thread-27" java.lang.UnsatisfiedLinkError: Could not load SWT library. Reasons: 
    no swt-win32-3650 in java.library.path
    no swt-win32 in java.library.path
    Native Library C:\Documents and Settings\xxx\Local Settings\Temp\swtlib-32\swt-win32-3650.dll already loaded in another classloader
    C:\Documents and Settings\xxx\Local Settings\Temp\swtlib-32\swt-win32.dll: %1 is not a valid Win32 application

at org.eclipse.swt.internal.Library.loadLibrary(Unknown Source)
at org.eclipse.swt.internal.Library.loadLibrary(Unknown Source)
at org.eclipse.swt.internal.C.<clinit>(Unknown Source)
at org.eclipse.swt.widgets.Display.<clinit>(Unknown Source)

I wonder, how can I unload swt dlls when browser page with applet is closed?

© Stack Overflow or respective owner

Related posts about java

Related posts about applet