I'm a beginner user of Play Framework 2.1.3 and I have just created a new Java application and I have run play eclipse
to generate the eclipse project for it. I have also tested so that it works by doing a play run
.
So I'm following this tutorial and there is a step where you should add this piece of code:
public static Result index() {
return redirect(routes.Application.tasks());
}
But I'm getting the message "routes cannot be resolved". I have also tried play compile
and in Eclipse doing a clean to no avail.
play eclipse
did you refresh the project in Eclipse? (right click project name and select refresh) – Entrenchment