I had the same problem, although I changed the parser as above, it does not work, and I got the same error.
In addition, when creating a project through the menu, the problem was solved:
Project>Build All
I think that the very first code execution with eclipse makes it necessary to create the code separately before clicking the green launch button (since I assumed that this would at least compile the code).
source share