There are two compiler errors which can be similarly confusing. They are “illegal start . . . ” and “class interface or enum expected” away from the beginning of a file. Both are usually caused by un-balanced {} braces.