The activator for bundle is invalid

后端 未结 14 2309
-上瘾入骨i
-上瘾入骨i 2020-12-30 04:31

I\'m trying to create a simple plugin in eclipse. When I run the application, I see this error in log file:

org.osgi.framework.BundleException : The a

14条回答
  •  感动是毒
    2020-12-30 04:55

    I spent some time with this problem. Finally I noticed that the ClassNotFoundExceptions were not in line with my code, they were coming from wrong (old) packages. I checked if there was some other plugin which was messing with my debugs/exports and indeed there was, my own plugin!

    So a simple fix to try if you're facing this and the CNFE's are not in line with your code:

    • Go to "Install new software"
    • Click on "already installed"
    • Remove all instances of your package/plugin and restart

    Likely this was caused because I changed the plugin ID, making Eclipse treat it as a new plugin.

    Another good site to take a look if you're getting frustrated and stuck: http://www.eclipsezone.com/eclipse/forums/t99010.html

提交回复
热议问题