Ive been trying to get groovy running on dalvikvm. And i have been
trying the route via groovyc (groovyc -> jar -> dx -> dalvikvm).
For testing i put together a jarfile with 3 classfiles, one pure java,
one javaclass that invokes a method on a groovy class, and a groovy
class.

The pure java class works flawlessly but the other two fails with
these messages:

/system/bin/dalvikvm -classpath testdex.jar GroovyFromJ
Dalvik VM unable to find static main(String[]) in 'GroovyFromJ'
java.lang.VerifyError: GroovyFromJ
        at dalvik.system.NativeStart.main(Native Method)

And for the groovy file:
/system/bin/dalvikvm -classpath testdex.jar Groov
Dalvik VM unable to locate class 'Groov'
java.lang.NoClassDefFoundError: Groov
        at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.ClassNotFoundException: Groov in loader
dalvik.system.pathclassloa...@400190d8
        at dalvik.system.PathClassLoader.findClass
(PathClassLoader.java:243)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:573)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:532)
        ... 1 more

What should happen is that the classes invoking groovy should throw a
class not found exception since i don't have the groovy jar in the
classpath yet (theres no point atm).
Does anyone have a clue about whats going on here? I know the
classfiles generated by groovyc is slightly different from javas, but
they are "real" classfiles and should atleast load.



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to