Sketch upload fails with Java error (___REMOVE___/bin/avrdude)!

Hi,

I’m getting always the same error despite have tried two boards and done an Arduino reinstall in my Windows 7 machine!

While trying to update a “BareMinimum” I get this in Verbose mode:

Arduino: 1.8.0 (Windows 7), Board: "Arduino/Genuino Uno"

Sketch uses 450 bytes (1%) of program storage space. Maximum is 32256 bytes.
Global variables use 9 bytes (0%) of dynamic memory, leaving 2039 bytes for local variables. Maximum is 2048 bytes.
___REMOVE___/bin/avrdude -C___REMOVE___/etc/avrdude.conf -v -patmega328p -carduino -PCOM8 -b115200 -D -Uflash:w:C:\Users\Rui\AppData\Local\Temp\arduino_build_445303/BareMinimum.ino.hex:i 
java.io.IOException: Cannot run program "___REMOVE___/bin/avrdude": CreateProcess error=2, The system cannot find the file specified
 at java.lang.ProcessBuilder.start(ProcessBuilder.java:1048)
 at processing.app.helpers.ProcessUtils.exec(ProcessUtils.java:26)
 at cc.arduino.packages.Uploader.executeUploadCommand(Uploader.java:129)
 at cc.arduino.packages.uploaders.SerialUploader.uploadUsingPreferences(SerialUploader.java:207)
 at cc.arduino.UploaderUtils.upload(UploaderUtils.java:78)
 at processing.app.SketchController.upload(SketchController.java:709)
 at processing.app.SketchController.exportApplet(SketchController.java:682)
 at processing.app.Editor$DefaultExportHandler.run(Editor.java:2190)
 at java.lang.Thread.run(Thread.java:745)
Caused by: java.io.IOException: CreateProcess error=2, The system cannot find the file specified
 at java.lang.ProcessImpl.create(Native Method)
 at java.lang.ProcessImpl.<init>(ProcessImpl.java:386)
 at java.lang.ProcessImpl.start(ProcessImpl.java:137)
 at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029)
 ... 8 more
An error occurred while uploading the sketch

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

I noticed that the path is “REMOVE” instead the correct one that I have in other computer:

C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avrdude -CC:\Program Files (x86)\Arduino\hardware\tools\avr/etc/avrdude.conf -v -patmega328p -carduino -PCOM3 -b115200 -D -Uflash:w:C:\Users\rui\AppData\Local\Temp\build5dbb73c39b07a34af2ebbf432b430198.tmp/BareMinimum.ino.hex:i

So, how to correct the avrdude path in the Arduino API?

Prior to this I used the Arduino software to upload sketches to the small board ESP8266 ESP-1… Any ideas?

PS - I selected Arduino Uno and the port Com8 and Com9 for each one of two Boards I tested.

ruiseixas: So, how to correct the avrdude path in the Arduino API?

I solved the problem by deleting the "C:\Users\AppData\Local\Arduino15" folder before the new reinstall!