Skip to content Skip to sidebar Skip to footer

Osgi Bundle Using Android Api Is Showing "java.lang.noclassdeffounderror" Error

In my eclipse plugin project, I am trying to use the Android API. The first thing I did is to add Android.jar to the build path. Then, I attempted to show a message on both the con

Solution 1:

I'm not familiar with andriod, but I can comment from the OSGi perspective. It is not correct for you to export android.util as your bundle does not have that class.

Instead, you need to prepare the android.jar as another OSGi bundle as that jar does have that package and add it to the OSGi runtime. It is not enough to add it to the build path.

Solution 2:

You can refer to the chapter "Enable non-graphical android bundle" in my topic. Even if it is aimed at Knopflerfish, the changes should be applicable to another OSGi implementation as long as you can modify it.

Full Android support for OSGi bundles

At the same time, I don't mind some help on my topic.

Post a Comment for "Osgi Bundle Using Android Api Is Showing "java.lang.noclassdeffounderror" Error"