CreateProcess ERROR

I installed arduino IDE onto my new laptop .When I was trying to upload the blink program(from example codes) onto my arduino uno R3 .The following message showed up. I found that this is happening for every program. The message reads as follows: Arduino: 1.6.5 (Windows 7), Board: "Arduino Uno"

avr-g++: error: CreateProcess: No such file or directory Error compiling.

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