获取 java.lang.UnsatisfiedLinkError:无法使用 Eclipse 最新版本和安装程序加载 SWT 库

问题描述 投票:0回答:1

最近更新后,我现在无法在 Windows 上运行 Eclipse,并收到以下错误:

---------------------------
Eclipse
---------------------------
An error has occurred. See the log file
F:\e\2024-09\configuration\1726759018149.log.
---------------------------
OK   
---------------------------

enter image description here

!SESSION 2024-09-19 20:46:57.918 -----------------------------------------------
eclipse.buildId=4.33.0.20240905-0613
java.version=21.0.4
java.vendor=Eclipse Adoptium
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US
Framework arguments:  -product org.eclipse.epp.package.jee.product
Command-line arguments:  -os win32 -ws win32 -arch x86_64 -product org.eclipse.epp.package.jee.product -clean

!ENTRY ch.qos.logback.classic 1 0 2024-09-19 20:48:22.360
!MESSAGE Activated before the state location was initialized. Retry after the state location is initialized.

!ENTRY org.eclipse.osgi 4 0 2024-09-19 20:48:28.268
!MESSAGE Application error
!STACK 1
java.lang.UnsatisfiedLinkError: Could not load SWT library. Reasons: 
    F:\e\2024-09\configuration\org.eclipse.osgi\800\0\.cp\swt-win32-4966r5.dll: The specified procedure could not be found
    no swt-win32 in java.library.path: F:\e\2024-09;C:\windows\Sun\Java\bin;C:\windows\system32;C:\windows;C:\Program Files\Common Files\Oracle\Java\javapath;C:\Program Files (x86)\Common Files\Oracle\Java\java8path;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\Program Files\Java\jdk1.8.0_231\bin;C:\windows\system32;C:\Program Files\Java\jdk1.8.0_231\bin;.
    no swt in java.library.path: F:\e\2024-09;C:\windows\Sun\Java\bin;C:\windows\system32;C:\windows;C:\Program Files\Common Files\Oracle\Java\javapath;C:\Program Files (x86)\Common Files\Oracle\Java\java8path;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\Program Files\Java\jdk1.8.0_231\bin;C:\windows\system32;.
    C:\Users\Username\.swt\lib\win32\x86_64\swt-win32-4966r5.dll: The specified procedure could not be found
    Can't load library: C:\Users\Username\.swt\lib\win32\x86_64\swt-win32.dll
    Can't load library: C:\Users\Username\.swt\lib\win32\x86_64\swt.dll
    C:\Users\Username\.swt\lib\win32\x86_64\swt-win32-4966r5.dll: The specified procedure could not be found

    at org.eclipse.swt.internal.Library.loadLibrary(Library.java:345)
    at org.eclipse.swt.internal.Library.loadLibrary(Library.java:254)
    at org.eclipse.swt.internal.C.<clinit>(C.java:19)
    at org.eclipse.swt.internal.win32.STARTUPINFO.<clinit>(STARTUPINFO.java:42)
    at org.eclipse.swt.widgets.Display.<clinit>(Display.java:150)
    at org.eclipse.ui.internal.Workbench.createDisplay(Workbench.java:721)
    at org.eclipse.ui.PlatformUI.createDisplay(PlatformUI.java:185)
    at org.eclipse.ui.internal.ide.application.IDEApplication.createDisplay(IDEApplication.java:182)
    at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:125)
    at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:208)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:143)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:109)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:439)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:271)
    at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
    at java.base/java.lang.reflect.Method.invoke(Method.java:580)
    at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:668)
    at org.eclipse.equinox.launcher.Main.basicRun(Main.java:605)
    at org.eclipse.equinox.launcher.Main.run(Main.java:1481)

我也删除了 C:\Users\User\.swt 文件夹,但仍然没有成功。

也不知道如何通过以下页面在windows上安装最新的SWT: https://www.eclipse.org/swt/

我该如何解决此问题,以便可以毫无问题地加载 Eclipse IDE 2024-09?

enter image description here

java windows eclipse swt
1个回答
0
投票

Windows Server 2016(数据中心)不受 Eclipse 2024-09 (4.33) 官方支持。

根据 Eclipse 项目的项目计划,Eclipse 2024-09 (4.33) 仅在 Windows 上测试和验证 Windows 10 和 11

有关详细信息,请参阅

Eclipse 平台 SWT 问题 #1252

© www.soinside.com 2019 - 2024. All rights reserved.