[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Orekit Developers] [SOCIS] problem converting a jar to android



On Sun, Sep 18, 2011 at 4:35 PM, Alexis Robert <alexis.robert@gmail.com> wrote:
> On Sun, Sep 18, 2011 at 4:27 PM, MAISONOBE Luc <luc.maisonobe@c-s.fr> wrote:
>> the command:
>>  dalvikvm -classpath test.jar org.apache.commons.math.LucTestPerformance
>>
>> produced the following error:
>>
>> Dalvik VM unable to locate class
>> 'org/apache/commons/math/LucTestPerformance'
>> java.lang.NoClassDefFoundError: org.apache.commons.math.LucTestPerformance
>>        at dalvik.system.NativeStart.main(Native Method)
>> Caused by: java.lang.ClassNotFoundException:
>> org.apache.commons.math.LucTestPerformance in loader
>> dalvik.system.PathClassLoader[test.jar]
>>        at: dalvik.system.PathClassLoader.fincClass(PathClassLoader.java:251)
>>        at: java.lang.ClassLoader.loadClass(ClassLoader.java:548)
>>        at: java.lang.ClassLoader.loadClass(ClassLoader.java:508)
>>        ... 1 more
>>
>
> That's strange. Can I have the test.jar file to test ?
>
> Alexis
>

That's strange, the test.jar file you gave me worked on my Nexus One
(both via USB and directly using Connectbot) and on an Android 3.1
emulator.

Just one very stupid question (because I don't really have any other
idea right now), have you made "cd /mnt/sdcard/" before running
dalvikvm ? :) Btw, if you've downloaded the .jar from the web, it
should be in /mnt/sdcard/Download/. I also had the same error when I
used the non-converted .jar.

Alexis