0
package controllers;

import play.mvc.*;

import views.html.*;

/**
 * This controller contains an action to handle HTTP requests
 * to the application's home page.
 */
public class HomeController extends Controller {


    public Result index() {
        response().setCookie(
                "theme",        // name
                "blue",         // value
                3600,           // maximum age
                "",   // path
                "localhost", // domain
                false,          // secure
                true            // http only
        );
        response.
        return ok("index here");     
    }

}

Here when I press ctrl + space near response it will show a message as shown in the image below. Screenshot of error message

Brian Tompsett - 汤莱恩
  • 5,753
  • 72
  • 57
  • 129
  • 1
    The message says you're not in a Java Project. Have you tried making it a Java Project? – nitind Oct 02 '16 at 05:15
  • Possible duplicate of [This compilation unit is not on the build path of a Java project](http://stackoverflow.com/questions/25401124/this-compilation-unit-is-not-on-the-build-path-of-a-java-project) – veysiertekin Oct 02 '16 at 20:48

0 Answers0