Bug 580298 - Unable to set "Require capability" requirement
Summary: Unable to set "Require capability" requirement
Status: NEW
Alias: None
Product: PDE
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.1   Edit
Hardware: PC Windows 10
: P3 major (vote)
Target Milestone: ---   Edit
Assignee: PDE-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-06-29 10:32 EDT by Omar Sweidan CLA
Modified: 2022-06-29 10:53 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Omar Sweidan CLA 2022-06-29 10:32:09 EDT
Hello, Team!

When I migrated my project from JavaSE 1.8 to JavaSE 17, I get the following error when trying to build it:

org.osgi.framework.BundleException: Could not resolve module: user.jobengine.log4j [2]
  Unresolved requirement: Require-Capability: osgi.ee; filter:="(&(osgi.ee=JavaSE)(version=17))"

What am I missing?

-- Configuration Details --
Product: Eclipse IDE 4.24.0.20220609-1200 (org.eclipse.epp.package.jee.product)Installed Features:
 org.eclipse.pde 3.14.1200.v20220607-0700
Comment 1 Omar Sweidan CLA 2022-06-29 10:53:19 EDT
The solution that is written here, does not work for me:

https://stackoverflow.com/questions/24669940/java-8-missing-required-capability-require-capability-osgi-ee-filter-osg