Skip to content

Error in launching Eclipse RCP Application when we migrate from 4.15 to 4.26. #1685

@NikitaIsalkar

Description

@NikitaIsalkar

We are migrating our RCP based application from Eclipse 4.15 (RCP 4.15) to 4.26 (RCP 4.26), for that we have built our target platform using p2 repository of Eclipse 4.26 (https://download.eclipse.org/eclipse/updates/4.26/R-4.26-202211231800/)

We are able to successfully launch the application on our local machine, since all the plugins are getting resolved and started whenever its required.

We are able to build our application, and trying to launch the same, but we are facing an issue while launching the application.
We used to launch the application with Eclipse 4.15 using below parameters in config.ini file.

osgi.bundles=org.eclipse.equinox.common@2:start,org.eclipse.equinox.registry@:start,org.eclipse.equinox.app@:start,org.eclipse.update.configurator@3:start,org.eclipse.core.runtime@:start,org.eclipse.equinox.ds@:start,org.eclipse.equinox.event@:start,org.eclipse.equinox.util@:start,org.eclipse.e4.ui.workbench.addons.swt@:start

osgi.configuration.area=
osgi.instance.area=

 
eclipse.product=<product-pugin>

But when we use the same config file with Eclipse 4.26, we are getting below error, even though these plugins are present

org.osgi.framework.BundleException: Could not resolve module: org.eclipse.core.runtime [3]
Unresolved requirement: Require-Bundle: org.eclipse.core.jobs; bundle-version="[3.13.0,4.0.0)"; visibility:="reexport"

After going through the documentation and p2 repo, we understood that org.eclipse.equinox.ds and org.eclipse.equinox.util has been removed from eclipse 4.26.
Can someone please suggest any alternative way to load all the plugins and resolve them at runtime while launching the application.

Tested under this environment:

  • Eclipse IDE/Platform version (as shown in Help > About): Eclipse 2022-12 4.26
  • Using Java 17
  • Migrating from Eclipse IDE/Platform version : Eclipse 2020-03 4.15

Community

  • I understand reporting an issue to this OSS project does not mandate anyone to fix it. Other contributors may consider the issue, or not, at their own convenience. The most efficient way to get it fixed is that I fix it myself and contribute it back as a good quality patch to the project.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions