简体   繁体   English

模拟器上的Java.lang.NoClassDefFoundError

[英]Java.lang.NoClassDefFoundError on emulator

First of all I know a number of similar question with their answers exist here on Stack Overflow. 首先,我在Stack Overflow上存在许多类似的问题,并给出了答案。 Yet I am asking this as none of them have worked. 但是我问这是因为他们都没有工作。 I have added the external jars to "libs" folder. 我已经将外部jar添加到“ libs”文件夹中。

Moreover the funny thing is that classes from commons.math-2.2.jar seem to work properly. 此外,有趣的是,commons.math-2.2.jar中的类似乎正常工作。 The problem is only when I try to use classes from jsci-wavelet.jar I have checked the build path n number of times. 问题仅在于当我尝试使用jsci-wavelet.jar中的类时,已经检查了构建路径n次。 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. 顺便说一句,我正在使用Android 2.2模拟器。 (Though even checked it for Android 4.0.3 but to no avail.) (尽管甚至针对Android 4.0.3进行了检查,但无济于事。)

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. 正如@rekaszeru所建议的那样,我检查了jsci-wavelet.jar是否存在任何依赖关系, jsci-wavelet.jar检查了其来源。 It said: 它说:

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

ie it required the classes in JSci.maths package too. 即它也需要JSci.maths包中的类。 So I added the fsci-core.jar to the dependencies and viola, it works perfectly. 因此,我将fsci-core.jar添加到了依赖项和中提琴中,它运行良好。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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