当前位置: 首页 > 知识库问答 >
问题:

eclipse中未安装Sonarlink插件

东方志尚
2023-03-14

我试图从eclipse Marketplace安装Sonarlint插件。安装后,它显示为eclipse Marketplace中的安装。但是,在重新启动之后,eclipse报告了以下错误。你能帮忙吗。我已经安装了2020-03版本的Eclipse,但仍然存在同样的问题。有人能帮忙吗

!MESSAGE FrameworkEvent ERROR
!STACK 0
org.osgi.framework.BundleException: Could not resolve module: org.sonarlint.eclipse.cdt [484]
  Unresolved requirement: Require-Bundle: org.eclipse.cdt.core; resolution:="optional"
  Unresolved requirement: Require-Bundle: org.sonarlint.eclipse.core
    -> Bundle-SymbolicName: org.sonarlint.eclipse.core; bundle-version="7.0.0.37874"; singleton:="true"
       org.sonarlint.eclipse.core [485]
         Unresolved requirement: Require-Capability: osgi.ee; filter:="(&(osgi.ee=JavaSE)(version=11))"
         Unresolved requirement: Require-Bundle: org.sonarsource.sonarlint.core.sonarlint-core; bundle-version="5.1.0"
           -> Bundle-SymbolicName: org.sonarsource.sonarlint.core.sonarlint-core; bundle-version="7.0.0.37656"
              org.sonarsource.sonarlint.core.sonarlint-core [489]
                Unresolved requirement: Require-Capability: osgi.ee; filter:="(&(osgi.ee=JavaSE)(version=11))"
  Unresolved requirement: Require-Bundle: org.sonarsource.sonarlint.core.sonarlint-core
    -> Bundle-SymbolicName: org.sonarsource.sonarlint.core.sonarlint-core; bundle-version="7.0.0.37656"

    at org.eclipse.osgi.container.Module.start(Module.java:462)
    at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel$2.run(ModuleContainer.java:1844)
    at org.eclipse.osgi.internal.framework.EquinoxContainerAdaptor$1$1.execute(EquinoxContainerAdaptor.java:136)
    at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1837)
    at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1778)
    at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.doContainerStartLevel(ModuleContainer.java:1742)
    at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1664)
    at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1)
    at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:234)
    at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:345)
!MESSAGE FrameworkEvent ERROR
!STACK 0
org.osgi.framework.BundleException: Could not resolve module: org.sonarlint.eclipse.core [485]
  Unresolved requirement: Require-Capability: osgi.ee; filter:="(&(osgi.ee=JavaSE)(version=11))"
  Unresolved requirement: Require-Bundle: org.sonarsource.sonarlint.core.sonarlint-core; bundle-version="5.1.0"
    -> Bundle-SymbolicName: org.sonarsource.sonarlint.core.sonarlint-core; bundle-version="7.0.0.37656"
       org.sonarsource.sonarlint.core.sonarlint-core [489]
         Unresolved requirement: Require-Capability: osgi.ee; filter:="(&(osgi.ee=JavaSE)(version=11))"

    at org.eclipse.osgi.container.Module.start(Module.java:462)
    at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel$2.run(ModuleContainer.java:1844)
    at org.eclipse.osgi.internal.framework.EquinoxContainerAdaptor$1$1.execute(EquinoxContainerAdaptor.java:136)
    at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1837)
    at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1778)
    at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.doContainerStartLevel(ModuleContainer.java:1742)
    at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1664)
    at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1)
    at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:234)
    at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:345)

错误-3

!MESSAGE FrameworkEvent ERROR
!STACK 0
org.osgi.framework.BundleException: Could not resolve module: org.sonarlint.eclipse.jdt [486]
  Unresolved requirement: Require-Bundle: org.sonarlint.eclipse.core
    -> Bundle-SymbolicName: org.sonarlint.eclipse.core; bundle-version="7.0.0.37874"; singleton:="true"
       org.sonarlint.eclipse.core [485]
         Unresolved requirement: Require-Capability: osgi.ee; filter:="(&(osgi.ee=JavaSE)(version=11))"
         Unresolved requirement: Require-Bundle: org.sonarsource.sonarlint.core.sonarlint-core; bundle-version="5.1.0"
           -> Bundle-SymbolicName: org.sonarsource.sonarlint.core.sonarlint-core; bundle-version="7.0.0.37656"
              org.sonarsource.sonarlint.core.sonarlint-core [489]
                Unresolved requirement: Require-Capability: osgi.ee; filter:="(&(osgi.ee=JavaSE)(version=11))"
  Unresolved requirement: Require-Bundle: org.sonarsource.sonarlint.core.sonarlint-core
    -> Bundle-SymbolicName: org.sonarsource.sonarlint.core.sonarlint-core; bundle-version="7.0.0.37656"

    at org.eclipse.osgi.container.Module.start(Module.java:462)
    at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel$2.run(ModuleContainer.java:1844)
    at org.eclipse.osgi.internal.framework.EquinoxContainerAdaptor$1$1.execute(EquinoxContainerAdaptor.java:136)
    at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1837)
    at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1778)
    at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.doContainerStartLevel(ModuleContainer.java:1742)
    at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1664)
    at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1)
    at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:234)
    at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:345)

共有1个答案

夹谷飞龙
2023-03-14

关键信息是

Require-Capability: osgi.ee; filter:="(&(osgi.ee=JavaSE)(version=11))"

也就是说,Eclipse必须使用Java11或更高版本运行。

 类似资料:
  • 我正在尝试从EclipseLuna安装JasperStudio。并获取以下错误: 收集要安装的项会话上下文时发生的错误是:(配置文件=epp.package.jee,阶段=org.eclipse.equinox.internal.p2.engine.phases.收集,操作数=,操作=)。问题下载神器:osgi.bundle,org.eclipse.xtext,2.12.0. v20170518-

  • 主要内容:Eclipse 查找和安装插件Eclipse 查找和安装插件 为 Eclipse IDE 提供基础的 Eclipse 平台由插件组成,可使用附加插件进行扩展。 有数百个插件可用。每个插件都为 Eclipse 添加了更多功能。您可以通过搜索 Eclipse Marketplace ( http://marketplace.eclipse.org/ )来找到提供特定功能的插件。例如,您可以找到允许将 eclipse 用作 Pyth

  • 查找和安装插件 Eclipse作为一个集成的IDE开发工具,为我们的软件开发提供了便利,eclipse除了自带的强大功能外,还支持功能丰富的插件。 我们可以通过Eclipse官方市场 (http://marketplace.eclipse.org/)找到并下载我们需要的插件。 例如我们可以查找支持 Python IDE 的插件,如下图所示: 在 Eclipse IDE 中我们也可以通过点击 Hel

  • 问题内容: 我已经在Windows 7(32位)计算机上安装了Genymotion。我正在与Eclipse合作开发Android应用程序。我想问一下安装Genymotion插件的正确方法是什么。 在他们的网站上,他们提供了两个用于Eclipse的JAR文件以及下面的注释: 可以通过启动Eclipse并转到“帮助/安装新软件”菜单来完成插件的安装,然后只需添加具有以下URL的新更新站点:http :

  • 主要内容:一、下载Subversion的eclipse插件 ,二、安装插件步骤一、下载Subversion的eclipse插件  http://pan.baidu.com/s/1eSxVNWm 下载 site-1.10.11.zip,本教程将此zip放在D盘。 二、安装插件步骤 STS(Eclipse)上安装svn插件步骤: 1、进入STS软件安装界面 2、安装svn插件 点击下一步。 接受协议,完成: 出现提示,选择继续安装: 安装完成,查看STS视图有SVN选项说明安装