Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Equinox » P2 Director fails to resolve Java 11 dependency
P2 Director fails to resolve Java 11 dependency [message #1828160] Wed, 03 June 2020 05:32 Go to next message
Manuel Mall is currently offline Manuel MallFriend
Messages: 26
Registered: September 2015
Junior Member
I am in the process of updating our RCP application to the latest version of RCP and Java 11. We are using the headless PDE Build to put everything together. The build currently fails at the P2 Director stage with:

     [java] [p2.director] Installing au.net.synergy.wts.application.Stars 6.0.0.202006021402.
     [java] [p2.director] Cannot complete the install because one or more required items could not be found.
     [java] [p2.director] Software being installed: Stars 6.0.0.202006021402 (au.net.synergy.wts.application.Stars 6.0.0.202006021402)
     [java] [p2.director] Missing requirement for filter properties ~= $0: Stars 6.0.0.202006021402 (au.net.synergy.wts.application.Stars 6.0.0.202006021402) requires 'osgi.ee; JavaSE [11.0.0,11.0.0]' but it could not be found
     [java] [p2.director] Installation failed.


The whole build runs on Java 11 and running the application out of the Eclipse IDE works fine as well. So does exporting from Eclipse IDE. However, the headless build fails as above.

Any ideas how to resolve that?
Re: P2 Director fails to resolve Java 11 dependency [message #1828163 is a reply to message #1828160] Wed, 03 June 2020 07:46 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 32498
Registered: July 2009
Senior Member
Typically these requirements are satisfied by fake/synthetic IUs with ID a.jre.javase. But PDE build is kind of old crappy technology . You would be much better served with a Maven/Tycho build.

If you use the Repository Explorer and look at the contents of a repository like https://download.eclipse.org/eclipse/updates/4.15 switching to "Expert Mode" via the view toolbar, you'll see IUs named a.jre.javase. You'll need to reference such a repository...



Ed Merks
Professional Support: https://www.macromodeling.com/
Re: P2 Director fails to resolve Java 11 dependency [message #1828169 is a reply to message #1828163] Wed, 03 June 2020 08:38 Go to previous messageGo to next message
Manuel Mall is currently offline Manuel MallFriend
Messages: 26
Registered: September 2015
Junior Member
Hi Ed, I realise that PDE Build is an 'old crappy' tech, but this is what is in place at the moment and switching to Maven/Tycho is not an immediate option but we will look at it down the track. So, my follow-up question is: how do I make these fake IUs available to the P2 director. We use a local single folder based target platform that is manually assembled (<- one reason why Tycho won't work for us out-of-the-box). I would somehow have to get these IUs into our target platform I assume - but how? Adding bundles to our target platform is trivial but I have no idea how to add an IU. Or can I somehow tell P2 director to look for these IUs in an external repository?

Thanks
Re: P2 Director fails to resolve Java 11 dependency [message #1828175 is a reply to message #1828169] Wed, 03 June 2020 09:54 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 32498
Registered: July 2009
Senior Member
If possible, include a repo like https://download.eclipse.org/eclipse/updates/4.15 and add requirements to a.jre.javase to force them into the target platform, i.e., <unit id="a.jre.javase" version="0.0.0"/>

Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:Axis2 plugin Installation problem
Next Topic:tearing out my hair trying to start the framework.
Goto Forum:
  


Current Time: Wed Sep 28 19:45:49 GMT 2022

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

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

Back to the top