Reputation: 21
I want to use an eclipse plugin having its source code.
I have tried to import it in eclipse Neon, the project gives no error but the jar doesn't work.
Then I have found in the "plugin.xml" file in the plugin project the line at the top <?eclipse version="3.4"?>
which specifies the eclipse version so I installed eclipse version 3.4 and some errors appears.
My question is does this line means that the plugin won't work except on the eclipse version 3.4 and this is the reason for it not working on a newer version of eclipse.
Thanks in advance.
Upvotes: 0
Views: 592
Reputation: 111216
The version at the top of the plugin.xml specifies the minimum version of Eclipse required by the plugin.xml specification. Any later version of Eclipse is OK as far as the plugin.xml is concerned. Currently 3.4 is still used for plugin.xml files created by any later version of Eclipse. So, no, this is not a reason that the plugin would not work on later versions of Eclipse.
The Require-Bundle
and Import-Package
statements in the MANIFEST.MF can specify in much more detail what versions of the various Eclipse plugins are required. Mismatches in these statements are much more likely to be a reason for the plugin not working.
If a plugin is not running always look in the .log file in the workspace .metadata directory as there is often a detailed message about what is wrong.
Upvotes: 0