Play Framework: Java version prior to 1.8 are not supported









up vote
0
down vote

favorite












I have an Ubuntu server running Ubuntu 16.04.5 LTS.
My PlayFramework version is 1.5.1.



I get the following error, and I cannot figure out why:



Nov 05 22:25:54 playframework[860]: SEVERE:
Nov 05 22:25:54 playframework[860]: @79nn5m673
Nov 05 22:25:54 playframework[860]: Failed to start
Nov 05 22:25:54 playframework[860]: Compilation error
Nov 05 22:25:54 playframework[860]: The file could not be compiled. Error raised is : Java version prior to 1.8 are not supported
Nov 05 22:25:54 playframework[860]: play.exceptions.CompilationException: Java version prior to 1.8 are not supported
Nov 05 22:25:54 playframework[860]: at play.classloading.ApplicationCompiler.<init>(ApplicationCompiler.java:64)
Nov 05 22:25:54 playframework[860]: at play.classloading.ApplicationClasses.<init>(ApplicationClasses.java:29)
Nov 05 22:25:54 playframework[860]: at play.Play.init(Play.java:219)
Nov 05 22:25:54 playframework[860]: at play.server.Server.main(Server.java:162)


The Java version I am running is Oracle Java 1.8:



Java(TM) SE Runtime Environment (build 1.8.0_191-b12)
Java HotSpot(TM) 64-Bit Server VM (build 25.191-b12, mixed mode)


I have also tried Java 11, but get the same error:



javac 11.0.1

java 11.0.1 2018-10-16 LTS
Java(TM) SE Runtime Environment 18.9 (build 11.0.1+13-LTS)
Java HotSpot(TM) 64-Bit Server VM 18.9 (build 11.0.1+13-LTS, mixed mode)


Under alternatives I get the following, showing no pre-1.8 java versions.



 Selection Path Priority Status
------------------------------------------------------------
0 /usr/lib/jvm/java-11-oracle/bin/java 1091 auto mode
* 1 /usr/lib/jvm/java-11-oracle/bin/java 1091 manual mode
2 /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java 1081 manual mode
3 /usr/lib/jvm/java-8-oracle/jre/bin/java 1081 manual mode


Issuing the 'play run' command also confirms it is using Java 11:



~ _ _ 
~ _ __ | | __ _ _ _| |
~ | '_ | |/ _' | || |_|
~ | __/|_|____|__ (_)
~ |_| |__/
~
~ play! 1.5.1, https://www.playframework.com
~
~ Ctrl+C to stop
~
~ using java version "1.8.0_191"
Listening for transport dt_socket at address: 8000
Nov 05, 2018 10:37:44 PM play.Logger niceThrowable
SEVERE:

@79nn7ahaj
Failed to start

Compilation error
The file could not be compiled. Error raised is : Java version prior to 1.8 are not supported

play.exceptions.CompilationException: Java version prior to 1.8 are not supported
at play.classloading.ApplicationCompiler.<init>(ApplicationCompiler.java:64)
at play.classloading.ApplicationClasses.<init>(ApplicationClasses.java:29)
at play.Play.init(Play.java:219)
at play.server.Server.main(Server.java:162)
There must be a simple explanation for this, but I cannot find it.









share|improve this question























  • The problem was the optional setting in the configuration file.
    – Luuk D. Jansen
    Nov 10 at 18:00














up vote
0
down vote

favorite












I have an Ubuntu server running Ubuntu 16.04.5 LTS.
My PlayFramework version is 1.5.1.



I get the following error, and I cannot figure out why:



Nov 05 22:25:54 playframework[860]: SEVERE:
Nov 05 22:25:54 playframework[860]: @79nn5m673
Nov 05 22:25:54 playframework[860]: Failed to start
Nov 05 22:25:54 playframework[860]: Compilation error
Nov 05 22:25:54 playframework[860]: The file could not be compiled. Error raised is : Java version prior to 1.8 are not supported
Nov 05 22:25:54 playframework[860]: play.exceptions.CompilationException: Java version prior to 1.8 are not supported
Nov 05 22:25:54 playframework[860]: at play.classloading.ApplicationCompiler.<init>(ApplicationCompiler.java:64)
Nov 05 22:25:54 playframework[860]: at play.classloading.ApplicationClasses.<init>(ApplicationClasses.java:29)
Nov 05 22:25:54 playframework[860]: at play.Play.init(Play.java:219)
Nov 05 22:25:54 playframework[860]: at play.server.Server.main(Server.java:162)


The Java version I am running is Oracle Java 1.8:



Java(TM) SE Runtime Environment (build 1.8.0_191-b12)
Java HotSpot(TM) 64-Bit Server VM (build 25.191-b12, mixed mode)


I have also tried Java 11, but get the same error:



javac 11.0.1

java 11.0.1 2018-10-16 LTS
Java(TM) SE Runtime Environment 18.9 (build 11.0.1+13-LTS)
Java HotSpot(TM) 64-Bit Server VM 18.9 (build 11.0.1+13-LTS, mixed mode)


Under alternatives I get the following, showing no pre-1.8 java versions.



 Selection Path Priority Status
------------------------------------------------------------
0 /usr/lib/jvm/java-11-oracle/bin/java 1091 auto mode
* 1 /usr/lib/jvm/java-11-oracle/bin/java 1091 manual mode
2 /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java 1081 manual mode
3 /usr/lib/jvm/java-8-oracle/jre/bin/java 1081 manual mode


Issuing the 'play run' command also confirms it is using Java 11:



~ _ _ 
~ _ __ | | __ _ _ _| |
~ | '_ | |/ _' | || |_|
~ | __/|_|____|__ (_)
~ |_| |__/
~
~ play! 1.5.1, https://www.playframework.com
~
~ Ctrl+C to stop
~
~ using java version "1.8.0_191"
Listening for transport dt_socket at address: 8000
Nov 05, 2018 10:37:44 PM play.Logger niceThrowable
SEVERE:

@79nn7ahaj
Failed to start

Compilation error
The file could not be compiled. Error raised is : Java version prior to 1.8 are not supported

play.exceptions.CompilationException: Java version prior to 1.8 are not supported
at play.classloading.ApplicationCompiler.<init>(ApplicationCompiler.java:64)
at play.classloading.ApplicationClasses.<init>(ApplicationClasses.java:29)
at play.Play.init(Play.java:219)
at play.server.Server.main(Server.java:162)
There must be a simple explanation for this, but I cannot find it.









share|improve this question























  • The problem was the optional setting in the configuration file.
    – Luuk D. Jansen
    Nov 10 at 18:00












up vote
0
down vote

favorite









up vote
0
down vote

favorite











I have an Ubuntu server running Ubuntu 16.04.5 LTS.
My PlayFramework version is 1.5.1.



I get the following error, and I cannot figure out why:



Nov 05 22:25:54 playframework[860]: SEVERE:
Nov 05 22:25:54 playframework[860]: @79nn5m673
Nov 05 22:25:54 playframework[860]: Failed to start
Nov 05 22:25:54 playframework[860]: Compilation error
Nov 05 22:25:54 playframework[860]: The file could not be compiled. Error raised is : Java version prior to 1.8 are not supported
Nov 05 22:25:54 playframework[860]: play.exceptions.CompilationException: Java version prior to 1.8 are not supported
Nov 05 22:25:54 playframework[860]: at play.classloading.ApplicationCompiler.<init>(ApplicationCompiler.java:64)
Nov 05 22:25:54 playframework[860]: at play.classloading.ApplicationClasses.<init>(ApplicationClasses.java:29)
Nov 05 22:25:54 playframework[860]: at play.Play.init(Play.java:219)
Nov 05 22:25:54 playframework[860]: at play.server.Server.main(Server.java:162)


The Java version I am running is Oracle Java 1.8:



Java(TM) SE Runtime Environment (build 1.8.0_191-b12)
Java HotSpot(TM) 64-Bit Server VM (build 25.191-b12, mixed mode)


I have also tried Java 11, but get the same error:



javac 11.0.1

java 11.0.1 2018-10-16 LTS
Java(TM) SE Runtime Environment 18.9 (build 11.0.1+13-LTS)
Java HotSpot(TM) 64-Bit Server VM 18.9 (build 11.0.1+13-LTS, mixed mode)


Under alternatives I get the following, showing no pre-1.8 java versions.



 Selection Path Priority Status
------------------------------------------------------------
0 /usr/lib/jvm/java-11-oracle/bin/java 1091 auto mode
* 1 /usr/lib/jvm/java-11-oracle/bin/java 1091 manual mode
2 /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java 1081 manual mode
3 /usr/lib/jvm/java-8-oracle/jre/bin/java 1081 manual mode


Issuing the 'play run' command also confirms it is using Java 11:



~ _ _ 
~ _ __ | | __ _ _ _| |
~ | '_ | |/ _' | || |_|
~ | __/|_|____|__ (_)
~ |_| |__/
~
~ play! 1.5.1, https://www.playframework.com
~
~ Ctrl+C to stop
~
~ using java version "1.8.0_191"
Listening for transport dt_socket at address: 8000
Nov 05, 2018 10:37:44 PM play.Logger niceThrowable
SEVERE:

@79nn7ahaj
Failed to start

Compilation error
The file could not be compiled. Error raised is : Java version prior to 1.8 are not supported

play.exceptions.CompilationException: Java version prior to 1.8 are not supported
at play.classloading.ApplicationCompiler.<init>(ApplicationCompiler.java:64)
at play.classloading.ApplicationClasses.<init>(ApplicationClasses.java:29)
at play.Play.init(Play.java:219)
at play.server.Server.main(Server.java:162)
There must be a simple explanation for this, but I cannot find it.









share|improve this question















I have an Ubuntu server running Ubuntu 16.04.5 LTS.
My PlayFramework version is 1.5.1.



I get the following error, and I cannot figure out why:



Nov 05 22:25:54 playframework[860]: SEVERE:
Nov 05 22:25:54 playframework[860]: @79nn5m673
Nov 05 22:25:54 playframework[860]: Failed to start
Nov 05 22:25:54 playframework[860]: Compilation error
Nov 05 22:25:54 playframework[860]: The file could not be compiled. Error raised is : Java version prior to 1.8 are not supported
Nov 05 22:25:54 playframework[860]: play.exceptions.CompilationException: Java version prior to 1.8 are not supported
Nov 05 22:25:54 playframework[860]: at play.classloading.ApplicationCompiler.<init>(ApplicationCompiler.java:64)
Nov 05 22:25:54 playframework[860]: at play.classloading.ApplicationClasses.<init>(ApplicationClasses.java:29)
Nov 05 22:25:54 playframework[860]: at play.Play.init(Play.java:219)
Nov 05 22:25:54 playframework[860]: at play.server.Server.main(Server.java:162)


The Java version I am running is Oracle Java 1.8:



Java(TM) SE Runtime Environment (build 1.8.0_191-b12)
Java HotSpot(TM) 64-Bit Server VM (build 25.191-b12, mixed mode)


I have also tried Java 11, but get the same error:



javac 11.0.1

java 11.0.1 2018-10-16 LTS
Java(TM) SE Runtime Environment 18.9 (build 11.0.1+13-LTS)
Java HotSpot(TM) 64-Bit Server VM 18.9 (build 11.0.1+13-LTS, mixed mode)


Under alternatives I get the following, showing no pre-1.8 java versions.



 Selection Path Priority Status
------------------------------------------------------------
0 /usr/lib/jvm/java-11-oracle/bin/java 1091 auto mode
* 1 /usr/lib/jvm/java-11-oracle/bin/java 1091 manual mode
2 /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java 1081 manual mode
3 /usr/lib/jvm/java-8-oracle/jre/bin/java 1081 manual mode


Issuing the 'play run' command also confirms it is using Java 11:



~ _ _ 
~ _ __ | | __ _ _ _| |
~ | '_ | |/ _' | || |_|
~ | __/|_|____|__ (_)
~ |_| |__/
~
~ play! 1.5.1, https://www.playframework.com
~
~ Ctrl+C to stop
~
~ using java version "1.8.0_191"
Listening for transport dt_socket at address: 8000
Nov 05, 2018 10:37:44 PM play.Logger niceThrowable
SEVERE:

@79nn7ahaj
Failed to start

Compilation error
The file could not be compiled. Error raised is : Java version prior to 1.8 are not supported

play.exceptions.CompilationException: Java version prior to 1.8 are not supported
at play.classloading.ApplicationCompiler.<init>(ApplicationCompiler.java:64)
at play.classloading.ApplicationClasses.<init>(ApplicationClasses.java:29)
at play.Play.init(Play.java:219)
at play.server.Server.main(Server.java:162)
There must be a simple explanation for this, but I cannot find it.






java playframework






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 5 at 22:45

























asked Nov 5 at 22:33









Luuk D. Jansen

2,08253576




2,08253576











  • The problem was the optional setting in the configuration file.
    – Luuk D. Jansen
    Nov 10 at 18:00
















  • The problem was the optional setting in the configuration file.
    – Luuk D. Jansen
    Nov 10 at 18:00















The problem was the optional setting in the configuration file.
– Luuk D. Jansen
Nov 10 at 18:00




The problem was the optional setting in the configuration file.
– Luuk D. Jansen
Nov 10 at 18:00












1 Answer
1






active

oldest

votes

















up vote
0
down vote













The problem was the optional setting in the configuration file. The compiler version can be overruled there.






share|improve this answer




















    Your Answer






    StackExchange.ifUsing("editor", function ()
    StackExchange.using("externalEditor", function ()
    StackExchange.using("snippets", function ()
    StackExchange.snippets.init();
    );
    );
    , "code-snippets");

    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "1"
    ;
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function()
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled)
    StackExchange.using("snippets", function()
    createEditor();
    );

    else
    createEditor();

    );

    function createEditor()
    StackExchange.prepareEditor(
    heartbeatType: 'answer',
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader:
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    ,
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );













     

    draft saved


    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53163234%2fplay-framework-java-version-prior-to-1-8-are-not-supported%23new-answer', 'question_page');

    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    0
    down vote













    The problem was the optional setting in the configuration file. The compiler version can be overruled there.






    share|improve this answer
























      up vote
      0
      down vote













      The problem was the optional setting in the configuration file. The compiler version can be overruled there.






      share|improve this answer






















        up vote
        0
        down vote










        up vote
        0
        down vote









        The problem was the optional setting in the configuration file. The compiler version can be overruled there.






        share|improve this answer












        The problem was the optional setting in the configuration file. The compiler version can be overruled there.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Nov 10 at 18:00









        Luuk D. Jansen

        2,08253576




        2,08253576



























             

            draft saved


            draft discarded















































             


            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53163234%2fplay-framework-java-version-prior-to-1-8-are-not-supported%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            這個網誌中的熱門文章

            How to read a connectionString WITH PROVIDER in .NET Core?

            In R, how to develop a multiplot heatmap.2 figure showing key labels successfully

            Museum of Modern and Contemporary Art of Trento and Rovereto