The ANTLR Tool will generate this error if for some reason it is unable to write to the location it has chosen or been specifically directed at. The name of the file will be given within the error message and you should check the following: