The activator for bundle is invalid

后端 未结 14 2308
-上瘾入骨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:46

    I also met the same error. The activator XX for bundle XX is invalid, and the ClassNotFoundException. I checked plugins\ directory, and could not find the class needed.

    -- Because there is no jar file containing the needed class, there is only the corresponding directory. For example, there is no com.hh.jar, but only com.hh directory.

    So, there must be something wrong about creating the com.hh.jar.

    if com.hh.jar reference other plugins, then also check them.

    I solved the problem by editing MANIFEST.MF. Open it by Plug-in Manifest Editor, in runtime tab, add needed packages in "Exported Packages". and in the "classpath", add needed libraries, and, "." (current directory, IMPORTANT)

提交回复
热议问题