Uploading error

Hi everyone,
I had an Arduino MEGA 2560 that worked well.
I reinstalled my WIN10 and now it does not work. It complies the program but it will not be uploaded on the board.

Arduino: 1.9.0-beta (Windows 10), Board: "Arduino/Genuino Mega or Mega 2560, ATmega2560 (Mega 2560)"

Sketch uses 6304 bytes (2%) of program storage space. Maximum is 253952 bytes.
Global variables use 270 bytes (3%) of dynamic memory, leaving 7922 bytes for local variables. Maximum is 8192 bytes.
java.io.IOException: Cannot run program "{runtime.tools.avrdude.path}/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:804)
at processing.app.SketchController.exportApplet(SketchController.java:775)
at processing.app.Editor$DefaultExportHandler.run(Editor.java:2254)
at java.lang.Thread.run(Thread.java:748)
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.(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.

Why are you using the beta build of the Arduino IDE? That is intended primarily for beta testing and is not guaranteed to be stable. If you don't have a specific reason for using it I recommend using Arduino IDE 1.8.5 instead.

Regarding the problem you are having with the beta build, I believe it is this one:

There doesn't seem to be a clear solution. I can tell you that I'm using the beta build without encountering this problem so it's not a universal problem.

Thank you a lot. I used the version you proposed and my problem was solved. Thanks again.