Skip to content

Negative requirement to reject a wiring? How to force a particular Java version? #492

Answered by merks
mickaelistria asked this question in Q&A
Discussion options

You must be logged in to vote

Actually testing the runtime behavior I see this failure:

org.osgi.framework.BundleException: Could not resolve module: org.eclipse.oomph.setup.core [403]
  Unresolved requirement: Require-Bundle: org.example.test; bundle-version="1.0.0"
    -> Bundle-SymbolicName: org.example.test; bundle-version="1.0.0.qualifier"
       org.example.test [551]
         Unresolved requirement: Require-Capability: osgi.ee; filter:="(&(osgi.ee=JavaSE)(version=16)(!(version=17)))"

	at org.eclipse.osgi.container.Module.start(Module.java:493)
	at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel$2.run(ModuleContainer.java:2069)
	at org.eclipse.osgi.internal.framework.EquinoxContainerAdaptor$1$1.e…

Replies: 1 comment 17 replies

Comment options

You must be logged in to vote
17 replies
@merks
Comment options

merks Jan 30, 2024
Collaborator

@laeubi
Comment options

@merks
Comment options

merks Jan 30, 2024
Collaborator

@merks
Comment options

merks Jan 30, 2024
Collaborator

Answer selected by mickaelistria
@merks
Comment options

merks Jan 30, 2024
Collaborator

@mickaelistria
Comment options

mickaelistria Jan 30, 2024
Collaborator Author

@merks
Comment options

merks Jan 30, 2024
Collaborator

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants