Or for anyone who is jogging an IDE which include eclipse it is possible to suitable click on the task -> build path -> configure build path The issue could be the sneaky semicolon ( ; ) before the . The Java language syntax defines a semicolon in that context https://bongacam-couples63962.blogdon.net/rumored-buzz-on-bongacam-couples-52475851