Playframwork 2.5 cannot compile "play java seed" app after create
<p>I'm trying play framework 2.5.4 following this tutorial: </p>

<p><a href="https://www.playframework.com/documentation/2.5.x/Installing" rel="nofollow noreferrer">https://www.playframework.com/documentation/2.5.x/Installing</a></p>

<p>I created an app from "Play Scala Seed" template, It works fine.</p>

<p>But when I created an app from "Play Java Seed" template, it cannot be compiled.</p>

<p>I try to read error message but I have no hint to solve this problem.</p>

<p>This is the detail error message:</p>

<pre><code>        Read from stdout: Compiling 6 Scala sources and 10 Java sources to D:\thanhpt\self-study\play framework\play-java\target\scala-2.11\classes...
Compiling 6 Scala sources and 10 Java sources to D:\thanhpt\self-study\play framework\play-java\target\scala-2.11\classes...
Read from stdout: D:\thanhpt\self-study\play framework\play-java\app\controllers\AsyncController.java:47:  error: ')' expected
D:\thanhpt\self-study\play framework\play-java\app\controllers\AsyncController.java:47:  error: ')' expected
Read from stdout: return getFutureMessage(1, TimeUnit.SECONDS).thenApplyAsync(Results::ok, exec);
Read from stdout: ^
        return getFutureMessage(1, TimeUnit.SECONDS).thenApplyAsync(Results::ok, exec);
                                                                           ^
D:\thanhpt\self-study\play framework\play-java\app\controllers\AsyncController.java:47:  error: illegal start of expression
Read from stdout: D:\thanhpt\self-study\play framework\play-java\app\controllers\AsyncController.java:47:  error: illegal start of expression
Read from stdout: return getFutureMessage(1, TimeUnit.SECONDS).thenApplyAsync(Results::ok, exec);
Read from stdout: ^
        return getFutureMessage(1, TimeUnit.SECONDS).thenApplyAsync(Results::ok, exec);
                                                                            ^
Read from stdout: D:\thanhpt\self-study\play framework\play-java\app\controllers\AsyncController.java:47:  error: ';' expected
D:\thanhpt\self-study\play framework\play-java\app\controllers\AsyncController.java:47:  error: ';' expected
Read from stdout: return getFutureMessage(1, TimeUnit.SECONDS).thenApplyAsync(Results::ok, exec);
Read from stdout: ^
        return getFutureMessage(1, TimeUnit.SECONDS).thenApplyAsync(Results::ok, exec);
                                                                                 ^
Read from stdout: D:\thanhpt\self-study\play framework\play-java\app\controllers\AsyncController.java:54:  error: illegal start of expression
D:\thanhpt\self-study\play framework\play-java\app\controllers\AsyncController.java:54:  error: illegal start of expression
Read from stdout: () -&gt; future.complete("Hi!"),
Read from stdout: ^
            () -&gt; future.complete("Hi!"),
             ^
Read from stdout: D:\thanhpt\self-study\play framework\play-java\app\controllers\AsyncController.java:54:  error: illegal start of expression
D:\thanhpt\self-study\play framework\play-java\app\controllers\AsyncController.java:54:  error: illegal start of expression
Read from stdout: () -&gt; future.complete("Hi!"),
Read from stdout: ^
            () -&gt; future.complete("Hi!"),
                ^
Read from stdout: D:\thanhpt\self-study\play framework\play-java\app\filters\ExampleFilter.java:40:  error: illegal start of expression
D:\thanhpt\self-study\play framework\play-java\app\filters\ExampleFilter.java:40:  error: illegal start of expression
Read from stdout: result -&gt; result.withHeader("X-ExampleFilter", "foo"),
Read from stdout: ^
            result -&gt; result.withHeader("X-ExampleFilter", "foo"),
                    ^
Read from stdout: D:\thanhpt\self-study\play framework\play-java\app\services\ApplicationTimer.java:42:  error: illegal start of expression
D:\thanhpt\self-study\play framework\play-java\app\services\ApplicationTimer.java:42:  error: illegal start of expression
Read from stdout: appLifecycle.addStopHook(() -&gt; {
Read from stdout: ^
        appLifecycle.addStopHook(() -&gt; {
                                  ^
Read from stdout: D:\thanhpt\self-study\play framework\play-java\app\services\ApplicationTimer.java:42:  error: illegal start of expression
D:\thanhpt\self-study\play framework\play-java\app\services\ApplicationTimer.java:42:  error: illegal start of expression
Read from stdout: appLifecycle.addStopHook(() -&gt; {
Read from stdout: ^
    appLifecycle.addStopHook(() -&gt; {
                                 ^
Read from stdout: D:\thanhpt\self-study\play framework\play-java\app\services\ApplicationTimer.java:42:  error: illegal start of expression
D:\thanhpt\self-study\play framework\play-java\app\services\ApplicationTimer.java:42:  error: illegal start of expression
Read from stdout: appLifecycle.addStopHook(() -&gt; {
Read from stdout: ^
        appLifecycle.addStopHook(() -&gt; {
                                       ^
Read from stdout: D:\thanhpt\self-study\play framework\play-java\app\services\ApplicationTimer.java:42:  error: ';' expected
D:\thanhpt\self-study\play framework\play-java\app\services\ApplicationTimer.java:42:  error: ';' expected
Read from stdout: appLifecycle.addStopHook(() -&gt; {
Read from stdout: ^
        appLifecycle.addStopHook(() -&gt; {
                                        ^
Read from stdout: D:\thanhpt\self-study\play framework\play-java\app\services\ApplicationTimer.java:47:  error: illegal start of type
D:\thanhpt\self-study\play framework\play-java\app\services\ApplicationTimer.java:47:  error: illegal start of type
Read from stdout: });
Read from stdout: ^
        });
         ^
Read from stdout: D:\thanhpt\self-study\play framework\play-java\app\services\ApplicationTimer.java:50:  error: class, interface, or enum expected
D:\thanhpt\self-study\play framework\play-java\app\services\ApplicationTimer.java:50:  error: class, interface, or enum expected
Read from stdout: }
Read from stdout: ^
}
^
Read from stdout: (compile:compileIncremental) javac returned nonzero exit code
(compile:compileIncremental) javac returned nonzero exit code
Total time: 2 s, completed Jun 14, 2016 2:34:23 PM
</code></pre>

<p><a href="https://i.stack.imgur.com/5uuTz.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/5uuTz.png" alt="enter image description here"></a></p>

<p>I'm using:</p>

<ol>
<li>Windows 7</li>
<li>Java 8</li>
<li>activator-dist-1.3.10</li>
<li>Play 2.5.4</li>
</ol>

<p>How to solve this problem?</p>