Duemilanove ? java.io.FileNotFound [SOLVED]

Board: Duemilanove
Chip: ATMEGA 328
OS: OS X 10.5.6
Board and Serial Port selected properly.

Hi,

I'm trying out my new Duemilanove, plug it the USB, PWR goes on and L flickers. Great, seems to be working. But trying to upload the "Blink" sketch it throws a java.io.FileNotFoundException. What is Blink.cpp and where should I find it?

Thanks for any feedback!

The full error:

Uncaught exception type:class java.io.FileNotFoundException
java.io.FileNotFoundException: /Applications/arduino-0015/examples/Digital/Blink/applet/Blink.cpp (No such file or directory)
at java.io.FileOutputStream.open(Native Method)
at java.io.FileOutputStream.(FileOutputStream.java:179)
at java.io.FileOutputStream.(FileOutputStream.java:131)
at processing.app.preproc.PdePreprocessor.write(PdePreprocessor.java:308)
at processing.app.Sketch.build(Sketch.java:1392)
at processing.app.Sketch.exportApplet(Sketch.java:1699)
at processing.app.Editor$41.run(Editor.java:2004)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:269)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:184)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:176)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)

The message contains part of the answer to your question: " /Applications/arduino-0015/examples/Digital/Blink/applet/Blink.cpp"

Does this file exist? Is this maybe a permissions issue?

Yeah, I've been searching high and low for this file, but to no avail. And I'm not finding any reference either to what this file should do. Should it appear after compiling the sketch? Because I'm able to compile the sketch without problems, but no new files are created. The only thing I find is the original .pde.

Even though I AM allowed to run Arduino on my work computer (I work in the research dept of an advertising agency) I have close to no administrative rights whatsoever. All the necessary programs and drivers where installed by the IT-guy. So this may be the problem after all?

Hi,
when a sketch is compiled the outout is written to directory
PlaceWherethePdeFileIs/applet/
If you have no permission to create new files or directories in
/Applications/arduino-0015/examples/Digital/Blink/
this is most likely the reason for the error.

I suggest you create a new Sketch in the IDE in one of the directories you use for your everyday work, and copy the contents of the Blink-Example into you newly created Sketch.

Eberhard

Hi Eberhard,

You where right on target!
Created a new sketch folder location.
Compiled the sketch.
Uploaded to Board.
LED is blinking as it should.

Vielen Dank!