I want to remove the dependency on org.eclipse.core.runtime.compatibility for my plugin.
posted 6 years ago
My plugin currently uses the plugin "org.eclipse.core.runtime.compatibility" for running, and I would like to remove that, for the following reason.
My activator class has the constructor with IPluginDescriptor argument defined, which simply calls the super class's constructor. I am using Eclipse Galileo. Now, when I just remove this constructor from the code, build the plugin, the plugin won't start. I get this java.lang.NoSuchMethodException: <init>(org.eclipse.core.runtime.IPluginDescriptor). This is correct exception, since the method does not exist.
But, why is it thrown when I remove the dependency of org.eclipse.core.runtime.compatibility from the Manifest editor? I googled on this and found out that that constructor is called only when my plugin explicitly depends on the compatibility plugin. Is there any other way to remove this?