Can't upload for some reason

When i try to upload i get this message:

"avrdude: no programmer has been specified on the command line or the config file
Specify a programmer using the -c option and try again"

What to do? The cable is good, and I have tried 2 Uno's and 1 Mega without any luck.

Any suggestions?

Updating to Arduino IDE 1.6.9 solved it.