[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:27 PM, MAISONOBE Luc <luc.maisonobe@c-s.fr> wrote:
> Hello,
>
> I tried to use the "easy way" instructions here:
> <https://www.orekit.org/forge/projects/socis-2011/wiki/HowToBuildToAndroid>
> to convert a simple standalone jar file to check loading performances (see
> <https://issues.apache.org/jira/browse/MATH-650>).
>
> I created the initial jar, checked it worked well in a Java environment
> under Linux, converted it to android using the dx program and tried to run
> it on the tablet. I did it on the tablet using a terminal application, not
> adb shell because I have some USB problems with my tablet.
>
> 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