I am getting an error at return :
public static Result home(String name)
{
return ok(home.render(name));
}
For which Eclipse says, home can't be resolved
. I know it is more of Scala than Java, but is there any way I can get rid of such errors. Well, without disabling error messaging (I see lot of such answers here on SO). Also, is there anyway I can make my Eclipse work autocomplete for Scala ?
Ah, I just noticed one more problem there. To use an external jar, all I have too keep jars in a lib folder and run eclipse again from cli. It works fine in browser but a class making use of jars is all wrong, as per Eclipse.
You could try Project > Properties > Java Build Path > Order and Export and select all less the jre. I solved my problem doing by this way.
I had to "activator eclipse" again after starting eclipse.
Use eclipse command, build the project from eclipse and refresh the project.
You have to do 2 things on Play 2.4:
activator eclipse
(from Activator UI or command line)target/scala-<version>/classes