Well, remember that the jar file CONTAINS class files. In a normal JDK environment the jar doesn't need to be "compiled", since it already is. But in Android the contents of the jar does need to get included into the dex file(s) which end up in the apk.
On Oct 18, 1:38 pm, ping <[email protected]> wrote: > I figured out that no *.class files are generated when the project is > building. > I tried to clean the project but there are no *.class files of the > *.jar in the bin folder of eclipse.... > > On Oct 18, 8:29 pm, DanH <[email protected]> wrote: > > > Note that NoClassDefFound can also occur because the class was found > > but was incompatible with other classes it links to. > > > On Oct 18, 12:48 pm, ping <[email protected]> wrote: > > > > Hi. > > > I have a problem with a library which i would like to use in my > > > project. > > > Here is the situtation: > > > I have an android project which has another Java Project in its build > > > path. Thats fine. The other java project reffers to another *.jar > > > library on its buildpath. Eclipse does not show any errors. But when i > > > try to call a method of the java project out of my android project it > > > cannot find the classes which are in the *.jar file of the java > > > project. It throws a NoClassDefFoundException. > > > > Android seems to doesnt find the *.jar file within the other java- > > > project..... > > > > Can anyone tell me what's the problem here.... > > > > Again: the projectstructure: > > > > ANDROID PROJECT ---uses---> JAVA PROJECT --uses---> *.jar > > > when I call a method of the javaproject out of the android project a > > > NoClassDefFoundException is thrown at the point where classes of the > > > *.jar file were used.... :/ > > > > greets -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

