2

I am trying to install the sonarlint plugin from eclipse marketplace. Once I install it shows as installed in the eclipse marketplace. However after restarting eclipse is reporting below errors. Can you please help. I have installed the 2020-03 version of eclipse but still the same issue.Can someone please help

ERROR -1

!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$ContainerStartLevel2ドル.run(ModuleContainer.java:1844)
 at org.eclipse.osgi.internal.framework.EquinoxContainerAdaptor1ドル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)

ERROR -2

!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$ContainerStartLevel2ドル.run(ModuleContainer.java:1844)
 at org.eclipse.osgi.internal.framework.EquinoxContainerAdaptor1ドル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)

ERROR -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$ContainerStartLevel2ドル.run(ModuleContainer.java:1844)
 at org.eclipse.osgi.internal.framework.EquinoxContainerAdaptor1ドル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)
asked Oct 17, 2021 at 6:13

1 Answer 1

4

The key message is

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

This is saying that Eclipse must be run using Java 11 or later.

answered Oct 17, 2021 at 6:57
Sign up to request clarification or add additional context in comments.

7 Comments

Ok thanks and where do I specify the version? in eclipse.ini in the -vm section?
Yes, the -vm in the eclipse.ini. Most of the current Eclipse downloads include a Java 15 built in.
Wouldn't this have failed well before this point? It sounds like this person was able to start up Eclipse, and then attempt to install a plugin. They shouldn't have been able to do that if they were not running it with Java 11.
@DavidM.Karr It is the plug-in they installed that needs Java 11, different plug-ins can require different levels of Java. You can install plug-ins that need a newer version of Java than the one you are running, but they will give this error when they are started.
@DavidM.Karr You might be thinking of the -Dosgi.requiredJavaVersion=11 entry in the eclipse.ini which lets the startup code do a quick check on the Java version
|

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.