简体   繁体   中英

Java.lang.NoClassDefFoundError on emulator

First of all I know a number of similar question with their answers exist here on Stack Overflow. Yet I am asking this as none of them have worked. I have added the external jars to "libs" folder.

Moreover the funny thing is that classes from commons.math-2.2.jar seem to work properly. The problem is only when I try to use classes from jsci-wavelet.jar I have checked the build path n number of times. There seems to be no problem there. I only have one package in my source code.

By the way I am using Android 2.2 emulator. (Though even checked it for Android 4.0.3 but to no avail.)

Sorry But stack exchange does not allow me to upload images

OK this one was not so much of a head ache. As suggested by @rekaszeru I checked if there were any dependencies of jsci-wavelet.jar I checked its source. It said:

import JSci.maths.wavelet.*;
import JSci.maths.*;

ie it required the classes in JSci.maths package too. So I added the fsci-core.jar to the dependencies and viola, it works perfectly.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM