title: Java play application running despite of having errors- how to resolve this errors?
body: <p>I just started with play using activator, I created new play app using </p>
  
  <pre><code>activator new firstApp play-java
  </code></pre>
  
  <p>Then I opened play console using activator and run the application, app was running fine.
  Then I opened the project in my intellij as SBT, the project opened and started showing errors.</p>
  
  <p>in routes file there were lines</p>
  
  <pre><code>GET     /                        controllers.HomeController.index
  GET     /count                   controllers.CountController.count
  GET     /message                 controllers.AsyncController.message
  </code></pre>
  
  <p>This errors are because method index, count and message are not static.
  This is an obvious error since we cannot call to static method like this, why the code application is still running.</p>
  
  <p>another error I am getting is in code </p>
  
  <pre><code>actorSystem.scheduler().scheduleOnce(
          Duration.create(time, timeUnit),
          () -&gt; future.complete("Hi!"),
          exec
      );
  </code></pre>
  
  <p>It says this is an ambiguous method call.</p>
  
  <p><strong>My question is, if there are errors why application is running without</strong></p>
  
  <p>I created run configuration as SBT task and tried to run the app an I got bunch of errors.  </p>