missing 'upload.tool' configuration parameter

When I try to upload I get the following

Error while uploading: missing 'upload.tool' configuration parameter

I have tried this on both a mega2560 and on a pro mini. I have set the board type and checked the com port. All looks OK. I never used to get any errors.

Any ideas?

I loaded the current version of software and the problem went away. Don't know what it was.