Bug 1403 : NoClassDefFoundError: org/apache/tools/ant/BuildException when starting android mode
Last modified: 2009-11-30 18:08




Status:
RESOLVED
Resolution:
FIXED -
Priority:
P1
Severity:
normal

 

Reporter:
ac
Assigned To:
fry

Attachment Type Created Size Actions

Description:   Opened: 2009-11-30 16:19
Starting the androing mode from the tools menu generates the following
error message:

Exception in thread "AWT-EventQueue-0" java.lang.NoClassDefFoundError:
org/apache/tools/ant/BuildException
at processing.app.tools.android.Android.run(Android.java:100)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
at
java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
at
java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
Caused by: java.lang.ClassNotFoundException:
org.apache.tools.ant.BuildException
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
... 9 more

However, when loading and running a sketch, the android emulator is still
loaded,although the sketch doesn't execute. I get this message in the console:

emulator -avd Processing-Donut -port 5566 -no-boot-anim

Exception in thread "Thread-7" java.lang.NullPointerException
at processing.app.tools.android.Android$RunHandler.run(Android.java:757)
at java.lang.Thread.run(Thread.java:619)

Using Ubuntu 9.04 32 bits.
Additional Comment #1 From fry 2009-11-30 18:08
whoa, not sure how that was missed. now fixed in svn, i'll post a new build
soon.