title: Play sbt subProjects routes: shopping.routes:5: object Application is not a member of package controllers.shopping
body: <p>Please give me some advice.
  I am following this:
  <a href="https://www.playframework.com/documentation/2.2.x/SBTSubProjects" rel="nofollow">https://www.playframework.com/documentation/2.2.x/SBTSubProjects</a></p>
  
  <p>What I am doing wrong? I have error with sub project routes:</p>
  
  <pre><code>shopping.routes:5: object Application is not a member of package controllers.shopping
  </code></pre>
  
  <p>My shopping.routes:</p>
  
  <pre><code>GET /index                  controllers.shopping.Application.index()
  GET /assets/*file           controllers.shopping.Assets.at(path="/public", file)
  </code></pre>
  
  <p>My shopping.controllers.Application class:</p>
  
  <pre><code>package controllers.shopping
  
  import play.api._
  import play.api.mvc._
  import views.html._
  
  public Class Application extends Controller {
  
    public Result index() {
      return ok("shopping");
    }
  }
  </code></pre>
  
  <p>my main build.sbt file:</p>
  
  <pre><code>import play.Project._
  name := "svp"
  
  
  version := "2.0.0_(20140725)"
  
  libraryDependencies ++= Seq(
    javaJdbc, 
    javaJpa, 
    "org.hibernate" % "hibernate-entitymanager" % "3.6.9.Final",
    "mysql" % "mysql-connector-java" % "5.1.27",
    "org.mindrot" % "jbcrypt" % "0.3m",
    cache
    )
  
  playJavaSettings
  
  lazy val shopping = project.in(file("modules/shopping"))
  
  lazy val main = project.in(file(".")).dependsOn(shopping).aggregate(shopping)
  </code></pre>