I'm new.
when i click the "android mode ",trying to start a simple program ,the window always like this
and the output message is
Exception in thread "AWT-EventQueue-0" java.lang.NullPointerExceptionat processing.app.EditorToolbar.loadImages(EditorToolbar.java:147)at processing.mode.android.AndroidToolbar.init(AndroidToolbar.java:49)at processing.app.EditorToolbar.paintComponent(EditorToolbar.java:172)at javax.swing.JComponent.paint(JComponent.java:1037)at javax.swing.JComponent.paintChildren(JComponent.java:870)at javax.swing.JComponent.paint(JComponent.java:1046)at javax.swing.JComponent.paintChildren(JComponent.java:870)at javax.swing.JSplitPane.paintChildren(JSplitPane.java:1030)at javax.swing.JComponent.paint(JComponent.java:1046)at javax.swing.JComponent.paintChildren(JComponent.java:870)at javax.swing.JComponent.paint(JComponent.java:1046)at javax.swing.JComponent.paintChildren(JComponent.java:870)at javax.swing.JComponent.paint(JComponent.java:1046)at javax.swing.JComponent.paintChildren(JComponent.java:870)at javax.swing.JComponent.paint(JComponent.java:1046)at javax.swing.JComponent.paintChildren(JComponent.java:870)at javax.swing.JComponent.paint(JComponent.java:1046)at javax.swing.JLayeredPane.paint(JLayeredPane.java:567)at javax.swing.JComponent.paintChildren(JComponent.java:870)at javax.swing.JComponent.paintToOffscreen(JComponent.java:5139)at javax.swing.RepaintManager$PaintManager.paintDoubleBuffered(RepaintManager.java:1491)at javax.swing.RepaintManager$PaintManager.paint(RepaintManager.java:1422)at javax.swing.RepaintManager.paint(RepaintManager.java:1225)at javax.swing.JComponent.paint(JComponent.java:1023)at java.awt.GraphicsCallback$PaintCallback.run(GraphicsCallback.java:21)at sun.awt.SunGraphicsCallback.runOneComponent(SunGraphicsCallback.java:60)at sun.awt.SunGraphicsCallback.runComponents(SunGraphicsCallback.java:97)at java.awt.Container.paint(Container.java:1778)at java.awt.Window.paint(Window.java:3390)at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:797)at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:714)at javax.swing.RepaintManager.prePaintDirtyRegions(RepaintManager.java:694)at javax.swing.RepaintManager.access$700(RepaintManager.java:41)at javax.swing.RepaintManager$ProcessingRunnable.run(RepaintManager.java:1636)at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:666)at java.awt.EventQueue.access$400(EventQueue.java:81)at java.awt.EventQueue$2.run(EventQueue.java:627)at java.awt.EventQueue$2.run(EventQueue.java:625)at java.security.AccessController.doPrivileged(Native Method)at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)at java.awt.EventQueue.dispatchEvent(EventQueue.java:636)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)Exception in thread "AWT-EventQueue-0" java.lang.NullPointerExceptionat processing.app.EditorToolbar.loadImages(EditorToolbar.java:147)at processing.mode.android.AndroidToolbar.init(AndroidToolbar.java:49)at processing.app.EditorToolbar.paintComponent(EditorToolbar.java:172)at javax.swing.JComponent.paint(JComponent.java:1037)at javax.swing.JComponent.paintChildren(JComponent.java:870)at javax.swing.JComponent.paint(JComponent.java:1046)at javax.swing.JComponent.paintChildren(JComponent.java:870)at javax.swing.JSplitPane.paintChildren(JSplitPane.java:1030)at javax.swing.JComponent.paint(JComponent.java:1046)at javax.swing.JComponent.paintChildren(JComponent.java:870)at javax.swing.JComponent.paint(JComponent.java:1046)at javax.swing.JComponent.paintChildren(JComponent.java:870)at javax.swing.JComponent.paint(JComponent.java:1046)at javax.swing.JComponent.paintChildren(JComponent.java:870)at javax.swing.JComponent.paint(JComponent.java:1046)at javax.swing.JComponent.paintChildren(JComponent.java:870)at javax.swing.JComponent.paint(JComponent.java:1046)at javax.swing.JLayeredPane.paint(JLayeredPane.java:567)at javax.swing.JComponent.paintChildren(JComponent.java:870)at javax.swing.JComponent.paintToOffscreen(JComponent.java:5139)at javax.swing.RepaintManager$PaintManager.paintDoubleBuffered(RepaintManager.java:1491)at javax.swing.RepaintManager$PaintManager.paint(RepaintManager.java:1422)at javax.swing.RepaintManager.paint(RepaintManager.java:1225)at javax.swing.JComponent.paint(JComponent.java:1023)at java.awt.GraphicsCallback$PaintCallback.run(GraphicsCallback.java:21)at sun.awt.SunGraphicsCallback.runOneComponent(SunGraphicsCallback.java:60)at sun.awt.SunGraphicsCallback.runComponents(SunGraphicsCallback.java:97)at java.awt.Container.paint(Container.java:1778)at java.awt.Window.paint(Window.java:3390)at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:797)at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:714)at javax.swing.RepaintManager.prePaintDirtyRegions(RepaintManager.java:694)at javax.swing.RepaintManager.access$700(RepaintManager.java:41)at javax.swing.RepaintManager$ProcessingRunnable.run(RepaintManager.java:1636)at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:666)at java.awt.EventQueue.access$400(EventQueue.java:81)at java.awt.EventQueue$2.run(EventQueue.java:627)at java.awt.EventQueue$2.run(EventQueue.java:625)at java.security.AccessController.doPrivileged(Native Method)at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)at java.awt.EventQueue.dispatchEvent(EventQueue.java:636)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)
the program is simple
void setup() { }
void draw() {
fill(0, 60);
rect(0, 0, width, height);
fill(255);
ellipse(motionX, motionY, 100, 100);
}
void draw() {
fill(0, 60);
rect(0, 0, width, height);
fill(255);
ellipse(motionX, motionY, 100, 100);
}
and "Run in Emulator" is no responmse
when I move the mouse pointer from one to another in toolbar,it gave me the error message as the same :
Exception in thread "AWT-EventQueue-0" java.lang.NullPointerExceptionat processing.app.EditorToolbar.loadImages(EditorToolbar.java:147)at processing.mode.android.AndroidToolbar.init(AndroidToolbar.java:49)at processing.app.EditorToolbar.paintComponent(EditorToolbar.java:172)at javax.swing.JComponent.paint(JComponent.java:1037)at javax.swing.JComponent.paintChildren(JComponent.java:870)at javax.swing.JComponent.paint(JComponent.java:1046)at javax.swing.JComponent.paintChildren(JComponent.java:870)at javax.swing.JSplitPane.paintChildren(JSplitPane.java:1030)at javax.swing.JComponent.paint(JComponent.java:1046)at javax.swing.JComponent.paintToOffscreen(JComponent.java:5132)at javax.swing.RepaintManager$PaintManager.paintDoubleBuffered(RepaintManager.java:1491)at javax.swing.RepaintManager$PaintManager.paint(RepaintManager.java:1422)at javax.swing.RepaintManager.paint(RepaintManager.java:1225)at javax.swing.JComponent._paintImmediately(JComponent.java:5080)at javax.swing.JComponent.paintImmediately(JComponent.java:4890)at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:786)at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:714)at javax.swing.RepaintManager.prePaintDirtyRegions(RepaintManager.java:694)at javax.swing.RepaintManager.access$700(RepaintManager.java:41)at javax.swing.RepaintManager$ProcessingRunnable.run(RepaintManager.java:1636)at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:666)at java.awt.EventQueue.access$400(EventQueue.java:81)at java.awt.EventQueue$2.run(EventQueue.java:627)at java.awt.EventQueue$2.run(EventQueue.java:625)at java.security.AccessController.doPrivileged(Native Method)at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)at java.awt.EventQueue.dispatchEvent(EventQueue.java:636)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)
Can anyone help me how to solve the problem?
The envirement :
windows-7-x32,
processing 2.0
latest Android sdk(I already updated,and the emulator works fine )
java version "1.6.0_26"
The Standard(or Java ) mode is good,but not the Android and Javascript mode
1