Running Eclipse RCP applications in IntelliJ 2017
In my new job I'm working with Eclipse RCP, and therefore (unfortunately) everone uses Eclipse. There is no way I'm going to use Eclipse for development, so I'd really like to get the application running from IntelliJ. Also, if I manage to do this it's very likely that I'll be able to convince the team (and management) to migrate to IntelliJ.
Unfortunately there is very little information out there. Even worse, I'm an Eclipse RCP rookie so it's a bit difficult for me to figure out why things aren't working out - that's why I'm asking for your help.
My basic setup is ready; I configured OSGi within IntelliJ and for all modules, now I'm struggling with the run configuration
I already followed https://intellij-support.jetbrains.com/hc/en-us/community/posts/206967975-Running-Eclipse-RCP-applications-in-IntelliJ-9?page=1#community_comment_207196589 but I'm still getting:
{code}
java.lang.IllegalArgumentException: The System Bundle's start level can not be modified.
at org.eclipse.osgi.framework.internal.core.StartLevelManager.setBundleStartLevel(StartLevelManager.java:366)
at org.eclipse.core.runtime.adaptor.EclipseStarter.installBundles(EclipseStarter.java:1065)
at org.eclipse.core.runtime.adaptor.EclipseStarter.loadBasicBundles(EclipseStarter.java:637)
at org.eclipse.core.runtime.adaptor.EclipseStarter.startup(EclipseStarter.java:301)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:175)
at org.eclipse.core.runtime.adaptor.EclipseStarter.main(EclipseStarter.java:150)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at com.intellij.rt.execution.CommandLineWrapper.main(CommandLineWrapper.java:65)
{code}
I did not add org.eclipse.osgi as a bundle, so I assume there's some sort of transitive dependency? Or maybe another bundle that's detected as "system bundle"? Also, despite having Configuration > Additional Framework Properties > "Product" set, other than Eclipse, IntelliJ does not append a -product parameter.
Hope this isn't all to vague, unfortunately I can't easily share much. However I'd greatly appreciate if someone could take the time to help me out! :)
Any hint is highly appreciated.
Please sign in to leave a comment.
I've asked the responsible developer to comment. See also https://youtrack.jetbrains.com/issue/IDEA-124520.
A comment or, even better, fixing IDEA-12452 would be greatly appreciated :-)
Hi Michel,
Sorry for the late reply.
Do you know any sample RCP app which I could use to debug the exception?