Bug 545653 - Export product fails if BREE is set to Java 11
Summary: Export product fails if BREE is set to Java 11
Status: REOPENED
Alias: None
Product: PDE
Classification: Eclipse Project
Component: Build (show other bugs)
Version: 4.12   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: pde-build-inbox CLA
QA Contact:
URL:
Whiteboard: stalebug
Keywords: investigate
: 568051 568388 (view as bug list)
Depends on:
Blocks:
 
Reported: 2019-03-22 04:03 EDT by Lars Vogel CLA
Modified: 2022-11-07 04:45 EST (History)
7 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Lars Vogel CLA 2019-03-22 04:03:27 EDT
I receive the following error during export of a plug-in with Bundle-RequiredExecutionEnvironment: JavaSE-11 

Processing inclusion from feature org.eclipse.pde.container.feature: Bundle com.example.e4.rcp_1.0.0.qualifier failed to resolve.:
	Missing Constraint: Bundle-RequiredExecutionEnvironment: JavaSE-11
	Host plug-in JavaSE_0.0.0 has not been found.


To reproduce:

1.) Create e4 RCP application with sample data based on the Eclipse 4 RCP application template using execution environment of Java 11
2.) Export product
Comment 1 Lars Vogel CLA 2019-03-22 04:03:47 EDT
Vikas, please have a look
Comment 2 Vikas Chandra CLA 2019-03-22 05:01:46 EDT
I think it is similar to https://bugs.eclipse.org/bugs/show_bug.cgi?id=525280

Right now, export of Plugin projects work fine but not RCP application.
Comment 3 Lars Vogel CLA 2019-04-16 04:22:22 EDT

*** This bug has been marked as a duplicate of bug 525280 ***
Comment 4 Markus Duft CLA 2020-01-16 02:00:45 EST
I don't think the duplicate is correct.

I'm having the same issue. Migrated Plugins to BREE JavaSE-11. P2 Director now fails to export the product, as the default (and maximum supported) profile according to JREAction (P2) and profile.list (org.eclipse.osgi) is JavaSE-9.

Aaaand again a blocker on the road to Java 11 :(

More related to this would be https://bugs.eclipse.org/bugs/show_bug.cgi?id=530150 and https://bugs.eclipse.org/bugs/show_bug.cgi?id=530093, I think.
Comment 5 Markus Duft CLA 2020-01-16 04:22:44 EST
I managed to work around by providing this p2.inf next to the .product file:

provides.1.namespace = osgi.ee
provides.1.name = JavaSE
provides.1.version = 10.0.0

provides.2.namespace = osgi.ee
provides.2.name = JavaSE
provides.2.version = 11.0.0
Comment 6 Lars Vogel CLA 2020-06-22 10:05:28 EDT
Exports fails with:

/home/vogella/workspace/eclipse4book/.metadata/.plugins/org.eclipse.pde.core/temp/org.eclipse.pde.container.feature/package.org.eclipse.pde.container.feature.linux.gtk.x86_64.xml:89: The following error occurred while executing this line:
/home/vogella/workspace/eclipse4book/.metadata/.plugins/org.eclipse.pde.core/temp/org.eclipse.pde.container.feature/package.org.eclipse.pde.container.feature.linux.gtk.x86_64.xml:495: The following error occurred while executing this line:
/home/vogella/dev/eclipse-2020-06-21/eclipse/plugins/org.eclipse.pde.build_3.10.800.v20200410-1419/scripts/genericTargets.xml:240: A problem occured while invoking the director.
The following error occurred while executing this line:
/home/vogella/workspace/eclipse4book/.metadata/.plugins/org.eclipse.pde.core/temp/org.eclipse.pde.container.feature/package.org.eclipse.pde.container.feature.linux.gtk.x86_64.xml:495: The following error occurred while executing this line:
/home/vogella/dev/eclipse-2020-06-21/eclipse/plugins/org.eclipse.pde.build_3.10.800.v20200410-1419/scripts/genericTargets.xml:240: A problem occured while invoking the director.
Comment 7 Mickael Istria CLA 2020-11-16 06:59:46 EST
I think this issue is caused by JREAction not being able to create the usual a.jre.javase units. The JREAction is stuck in the pre Java 11/modular world. It could be improved to at least generate (with some warning) an IU for the current runtime, for which Equinox can give all interesting information.

One workaround can be to include JustJ runtimes in the .product. It comes with installable units that would satisfy the requirement.
Comment 8 Mickael Istria CLA 2020-11-16 07:00:46 EST
*** Bug 567394 has been marked as a duplicate of this bug. ***
Comment 9 Mickael Istria CLA 2020-11-16 07:01:11 EST
*** Bug 568051 has been marked as a duplicate of this bug. ***
Comment 10 Mickael Istria CLA 2020-11-16 07:01:46 EST
*** Bug 568388 has been marked as a duplicate of this bug. ***
Comment 11 Kenneth Evans CLA 2020-11-16 09:41:57 EST
In regard to Bug 567394. In that case the
there is no problem with export. The problem is that the exported product fails to run even though it runs fine in the Workbench. I also have another Java 11 product that both exports and runs when exported, so it is more than just Java 11. 

It thus doesn't seem to be the same issue as here. I'll let you decide.
Comment 12 Eddie Galvez CLA 2020-11-16 09:50:57 EST
I am trying to apply the 'workaround' listed in the linked bug regarding p2.inf. If it works, I will post here. If it doesn't, I fear we are still stuck.

However, we are also beginning to look at using Tycho to drive our product build, which might allow us to adopt Eclipse 4.17 at the same time, and not hit this bug.
Comment 13 Eddie Galvez CLA 2020-11-16 09:52:24 EST
(In reply to Eddie Galvez from comment #12)
> I am trying to apply the 'workaround' listed in the linked bug regarding
> p2.inf. If it works, I will post here. If it doesn't, I fear we are still
> stuck.
> 
> However, we are also beginning to look at using Tycho to drive our product
> build, which might allow us to adopt Eclipse 4.17 at the same time, and not
> hit this bug.

oops this was meant for 568051
Comment 14 Eclipse Genie CLA 2022-11-07 04:45:05 EST
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.