I tried to run a really simple OSGi Hello World style example with an activator after a longer time and got a ClassNotFoundException for org.osgi.framework.BundleActivator (see stack trace below).
The environment is the basic Equinox (org.eclipse.osgi_3.7.2 ...). All bundles (except mine) are ACTIVE. I have "org.osgi.framework" in my "Import-Package" declaration in the manifest, and I see the class in the package dependencies in Eclipse.
Can someone give me a hint about trying to fix this?
Regards, Andre
Caused by: java.lang.ClassNotFoundException: org.osgi.framework.BundleActivator
at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:513)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:429)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:417)
at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
... 30 more
André source
share