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:

  • Is there already a file of that name in the specified location and it is read only?
  • Do you have file system permissions to write the output file in to the target directory?