我们的团队在Windows上用Java开发了一个项目。我们是基于JCEF开发的。它在Windows 10上可以正常工作。但是在Windows 7上无法启动。错误消息在这里
java.lang.UnsatisfiedLinkError: E:\ProjectName\jre64\bin\chrome_elf.dll: 找不到指定的程序。
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(Unknown Source)
at java.lang.ClassLoader.loadLibrary(Unknown Source)
at java.lang.Runtime.loadLibrary0(Unknown Source)
at java.lang.System.loadLibrary(Unknown Source)
at org.cef.SystemBootstrap$1.loadLibrary(SystemBootstrap.java:24)
at org.cef.SystemBootstrap.loadLibrary(SystemBootstrap.java:36)
at org.cef.CefApp.<init>(CefApp.java:145)
at org.cef.CefApp.getInstance(CefApp.java:221)
at org.cef.CefApp.getInstance(CefApp.java:208)
at com.kjy.ui.MainWindow.createBrowser(MainWindow.java:179)
at com.kjy.ui.MainWindow.init(MainWindow.java:255)
at com.kjy.ui.MainWindow.<init>(MainWindow.java:138)
at com.kjy.ui.WindowSplash.showMain(WindowSplash.java:165)
at com.kjy.ui.WindowSplash.start(WindowSplash.java:86)
at com.kjy.ui.WindowSplash.main(WindowSplash.java:177)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.exe4j.runtime.LauncherEngine.launch(LauncherEngine.java:85)
at com.exe4j.runtime.WinLauncher.main(WinLauncher.java:94)
找不到指定的程序。
表示The specified procedure could not be found.
我们下载了depends.exe
来检查dll文件的依赖关系,然后我们下载了它提到的依赖关系文件,一开始似乎起作用了,缺失的DLL依赖关系从15个下降到13个,但是随着其他几个dll文件的下载,缺失的依赖关系迅速增长到几十个
Seemed work at first
Dozens of missing dependencies
这里提到了缺少的依赖项depends.exe
API-MS-WIN-APPMODEL-UNLOCK-L1-1-0.DLL
API-MS-WIN-CORE-APIQUERY-L1-1-0.DLL
API-MS-WIN-CORE-COM-L1-1-0.DLL
API-MS-WIN-CORE-COM-L1-1-1.DLL
API-MS-WIN-CORE-DELAYLOAD-L1-1-1.DLL
API-MS-WIN-CORE-ERRORHANDLING-L1-1-2.DLL
API-MS-WIN-CORE-ERRORHANDLING-L1-1-3.DLL
API-MS-WIN-CORE-LIBRARYLOADER-L1-2-0.DLL
API-MS-WIN-CORE-PSAPI-L1-1-0.DLL
API-MS-WIN-CORE-REGISTRY-L1-1-0.DLL
API-MS-WIN-CORE-SYSINFO-L1-2-0.DLL
API-MS-WIN-CORE-THREADPOOL-L1-2-0.DLL
API-MS-WIN-CORE-VERSION-L1-1-0.DLL
API-MS-WIN-CORE-VERSION-L1-1-1.DLL
API-MS-WIN-CORE-WINDOWSERRORREPORTING-L1-1-0.DLL
API-MS-WIN-CORE-WINRT-ERROR-L1-1-1.DLL
API-MS-WIN-EVENTING-PROVIDER-L1-1-0.DLL
API-MS-WIN-RTCORE-NTUSER-PRIVATE-L1-1-0.DLL
API-MS-WIN-RTCORE-NTUSER-PRIVATE-L1-1-7.DLL
API-MS-WIN-RTCORE-NTUSER-PRIVATE-L1-1-9.DLL
API-MS-WIN-RTCORE-NTUSER-WINDOW-L1-1-0.DLL
API-MS-WIN-SHCORE-TASKPOOL-L1-1-0.DLL
API-MS-WIN-STATESEPARATION-HELPERS-L1-1-0.DLL
COREMESSAGING.DLL
EXT-MS-WIN-RTCORE-MINUSER-INPUT-L1-1-1.DLL
EXT-MS-WIN-RTCORE-NTUSER-DPI-L1-1-0.DLL
EXT-MS-WIN-RTCORE-NTUSER-SYSPARAMS-L1-1-0.DLL
MSVCP_WIN.DLL
WIN32U.DLL
WUCEFFECTS.DLL
我们还下载了VC_redist.x64.exe
和microsoft.2021.04.07.exe
。安装并重新启动计算机。但没有任何变化。我将非常感谢您的帮助和有用的信息!
1条答案
按热度按时间ggazkfy81#
问题解决了,我发了一个没用的问题,从2022年12月开始,CEF的构建环境不再支持Windows7.但是Doc of JCEF没有更新,我稍后会删除这个问题。