Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » Product Export with JDK 11(Missing requirement: plugin requires 'osgi.ee; (&(osgi.ee=JavaSE)(version=11))' but it could not be found)
Product Export with JDK 11 [message #1834003] Fri, 30 October 2020 01:00 Go to next message
Chris Lake is currently offline Chris LakeFriend
Messages: 25
Registered: November 2015
Junior Member
I have a problem in two parts.

At first I thought my problems was using Oomph to install Eclipse with a bundle pool. This stops Eclipse exporting products using JDK 11 (probably JDK 10 and above). I created a bug here: https://bugs.eclipse.org/bugs/show_bug.cgi?id=568388

However, this finding did not resolve my issue. We use a software site for our Target Definition. Taking the above bug as the base, I can observe the following:


  • Download JDK 11
  • Download "Eclipse IDE for RCP and RAP Developers"
  • Create Simple plugin and product
  • Create a target:
    Add a "Software Site" using : http://download.eclipse.org/releases/2020-09
    Select the "Eclipse for RCP and RAP Developers" feature
  • Apply the target
  • Run Product Export Wizard

* Result:
The following error occurred while executing this line:
C:\dev\ws\.metadata\.plugins\org.eclipse.pde.core\temp\org.eclipse.pde.container.feature\package.org.eclipse.pde.container.feature.win32.win32.x86_64.xml:182: The following error occurred while executing this line:
C:\Users\user\.p2\pool\plugins\org.eclipse.pde.build_3.10.800.v20200410-1419\scripts\genericTargets.xml:240: A problem occured while invoking the director.

Adding the following to the genericTargets.xml:
<property name="p2.director.log" value="c:/users/user/Desktop/director.log" />
<record name="c:/users/user/Desktop/build.log" loglevel="verbose"/>
Gives:
Missing requirement: Theplugin 1.0.0.202010291855 (theplugin 1.0.0.202010291855) requires 'osgi.ee; (&(osgi.ee=JavaSE)(version=11))' but it could not be found

After a lot of digging, it seems that the PDE export ignores non-local targets when attempting to find profiles to use as a reference repository for the export.

Does anyone else use a non-local target and able to export for JDK 11?

[Updated on: Fri, 30 October 2020 05:28]

Report message to a moderator

Re: Product Export with JDK 11 [message #1834078 is a reply to message #1834003] Mon, 02 November 2020 05:40 Go to previous message
Chris Lake is currently offline Chris LakeFriend
Messages: 25
Registered: November 2015
Junior Member
I have found a workaround. As part of the target file, as well as the HTTPS software site, I added an empty installation. It simply contains the following:
jdk11profile/
├─configuration/
│ └─config.ini
│
└─p2/
  └─org.eclipse.equinox.p2.engine/
    └─profileRegistry/
      └─epp.package.rcp.profile/
        └─1568701474811.profile

#config.ini
eclipse.p2.data.area=@config.dir/../p2
eclipse.p2.profile=epp.package.rcp


The 1568701474811.profile file is simply taken from my actual Eclipse install, albeit unzipped, and ONLY contains the 'a.jre.javase' '11.0.0' profile.

This appears to be enough to appease the PDE Product Exporter and I can now export plugins requiring JDK 11.
Previous Topic:PDE Build can't find dependency to Java 11
Next Topic:AccessControlException in eclipse-based product when using New Plugin Project wizard
Goto Forum:
  


Current Time: Fri Apr 26 03:48:14 GMT 2024

Powered by FUDForum. Page generated in 0.02763 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top