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

迁移Eclipse应用至Java21时org.eclipse.sphinx.platform的BundleException问题

Eclipse应用迁移问题

我正在将Eclipse应用从Java 11迁移到Java 21,同时把Eclipse版本从4.16升级到4.33。应用在本地工作区能正常启动,但导出为Eclipse产品后,OSGI加载org.eclipse.sphinx.platform插件时抛出异常,报错日志如下:

org.osgi.framework.BundleException: Exception in org.eclipse.sphinx.platform.internal.Activator.start() of bundle org.eclipse.sphinx.platform.

Caused by: java.lang.IllegalStateException: Workspace is already closed or not ready yet. Consider tracking the org.eclipse.core.resources.IWorkspace service (using your favorite technique, e.g. Declarative Services, ServiceTracker, Blueprint, ...) instead of calling the static method here to prevent such issues!
        at org.eclipse.core.resources.ResourcesPlugin.getWorkspace(ResourcesPlugin.java:522)

环境信息

  • Eclipse版本:4.33
  • Java版本:21
  • Sphinx版本:0.13.0

已排查情况

  • 另一使用org.eclipse.sphinx.platform插件的产品运行正常
  • 已将该插件的类路径更新至Java 8
  • 启动配置截图:启动配置

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

相关产品推荐
方舟 Agent Plan

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

最近更新时间:2026.06.13 22:12:05