You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

如何在Ubuntu-24.04(WSL)上运行JCEFMaven示例程序

关于WSL中运行JCEF示例应用的问题

我在Ubuntu系统(WSL环境)上尝试通过JCEF运行CEF,使用JCEFMaven管理依赖,添加完所有依赖后,运行官方示例应用时出现大量错误。该示例在Windows系统上可正常运行,能生成测试报告并打开浏览器窗口,但Linux环境下却报错不断。

错误日志

Jan 17, 2025 4:46:12 AM me.friwi.jcefmaven.impl.progress.ConsoleProgressHandler handleProgress
INFO: LOCATING |> In progress...
Jan 17, 2025 4:46:13 AM me.friwi.jcefmaven.impl.progress.ConsoleProgressHandler handleProgress
INFO: INITIALIZING |> In progress...
Jan 17, 2025 4:46:13 AM me.friwi.jcefmaven.impl.progress.ConsoleProgressHandler handleProgress
INFO: INITIALIZED |> In progress...
initialize on Thread[AWT-EventQueue-0,6,main] with library path /home/baa/test/jcefMaven/jcef-bundle
[0117/044613.764351:WARNING:alloy_main_delegate.cc(559)] Alloy bootstrap is deprecated and will be removed in ~M127. See https://github.com/chromiumembedded/cef/issues/3685
WARNING: dzn is not a conformant Vulkan implementation, testing use only.
error: XDG_RUNTIME_DIR is invalid or not set in the environment.
WARNING: Some incorrect rendering might occur because the selected Vulkan device (Microsoft Direct3D12 (Intel(R) Iris(R) Xe Graphics)) doesn't support base Zink requirements: feats.features.logicOp have_EXT_custom_border_color have_EXT_line_rasterization
[0117/044618.789045:ERROR:bus.cc(407)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
[0117/044618.790013:ERROR:bus.cc(407)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
WARNING: dzn is not a conformant Vulkan implementation, testing use only.
libEGL warning: DRI3: Screen seems not DRI3 capable
libEGL warning: DRI3: Screen seems not DRI3 capable
WARNING: dzn is not a conformant Vulkan implementation, testing use only.
error: XDG_RUNTIME_DIR is invalid or not set in the environment.
WARNING: dzn is not a conformant Vulkan implementation, testing use only.
error: XDG_RUNTIME_DIR is invalid or not set in the environment.
WARNING: Some incorrect rendering might occur because the selected Vulkan device (Microsoft Direct3D12 (Intel(R) Iris(R) Xe Graphics)) doesn't support base Zink requirements: feats.features.logicOp have_EXT_custom_border_color have_EXT_line_rasterization
WARNING: Some incorrect rendering might occur because the selected Vulkan device (Microsoft Direct3D12 (Intel(R) Iris(R) Xe Graphics)) doesn't support base Zink requirements: feats.features.logicOp have_EXT_custom_border_color have_EXT_line_rasterization
[0117/044620.403095:WARNING:gpu_memory_buffer_support_x11.cc(49)] dri3 extension not supported.
[0117/044620.411859:WARNING:sandbox_linux.cc(430)] InitializeSandbox() called with multiple threads in process gpu-process.
WARNING: dzn is not a conformant Vulkan implementation, testing use only.
error: XDG_RUNTIME_DIR is invalid or not set in the environment.
WARNING: Some incorrect rendering might occur because the selected Vulkan device (Microsoft Direct3D12 (Intel(R) Iris(R) Xe Graphics)) doesn't support base Zink requirements: feats.features.logicOp have_EXT_custom_border_color have_EXT_line_rasterization 

疑问

  • 这些错误是否因WSL缺乏GUI支持导致?
  • 如果使用带完整GUI的Ubuntu系统,这些问题能否解决?

内容的提问来源于stack exchange,提问作者idk

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.06.14 21:43:12