Saturday, May 4, 2013

Arduino IDE OPEN/SAVE problem in Ubuntu

Finally, Arduino UNO has arrived. I've downloaded IDE tool and tested some examples. But a serious problem appeared that gave me a headache! Open and Save feature stops with a Java NullPointer Exception!!!

Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException: NullPointerException
at sun.awt.motif.MFileDialogPeer.setFont(Native Method)
at sun.awt.motif.MComponentPeer.initialize(
at sun.awt.motif.MComponentPeer.init(
at sun.awt.motif.MWindowPeer.init(
at sun.awt.motif.MDialogPeer.<init>(
at sun.awt.motif.MFileDialogPeer.<init>(
at sun.awt.motif.MToolkit.createFileDialog(
at java.awt.FileDialog.addNotify(
at java.awt.Dialog.conditionalShow(
at java.awt.Component.setVisible(
at java.awt.Window.setVisible(
at java.awt.Dialog.setVisible(

There was no answer even after some google searches. I was so disapointed that I setup Eclipse with AVR plugin to do my experiments. Examining the "AWT-EventQueue-0" error I looked for some environmental set relevant to AWT. I found that there was an AWT_TOOLKIT set. Unsetting this solved the problem!!!


No comments:

Post a Comment