gpt4 book ai didi

java - SWT 小程序 : swt-win32-3650. dll 已加载到另一个类加载器中

转载 作者:行者123 更新时间:2023-12-02 08:32:20 24 4
gpt4 key购买 nike

我有多个页面,其中包含用 SWT 编写的 java 小程序。问题是,小程序仅在第一页上加载,要将其加载到另一个页面上,我需要重新启动浏览器,否则我会收到以下错误:

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)

我想知道,当带有小程序的浏览器页面关闭时,如何卸载swt dll?

最佳答案

小程序类:

    @Override
public void stop() {
// do this to unload swt dlls
System.exit(0);
}

关于java - SWT 小程序 : swt-win32-3650. dll 已加载到另一个类加载器中,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2997620/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com