lambda expressions are not supported at this language level IDEA












7















I'm trying to create my first fxml java project and at the initialising stage I'm trying to set cell value factory for the table columnt, for example



      @FXML
private void initialize() {
agentId.setCellValueFactory(cellData -> cellData.getValue().getIdProperty());
.....}


and this is underlined red and gives an error that mentioned in title. Changing language level in project structure gives no effect. What else may be the reason of error?



UPD: I've found that it is nesessary to install java with lambdas that is not included to the official release. I did it and nevertheless it didn't help. I've downloaded it here










share|improve this question




















  • 1





    I assume you are setting the language level to 1.8?

    – James_D
    Apr 28 '15 at 15:20











  • @James_D it is not written that it is 1.8, but 8

    – Nikitin Mikhail
    Apr 29 '15 at 6:30











  • Have you tried using Android N sdk with Jack compiler?

    – IgorGanapolsky
    Mar 14 '16 at 20:41
















7















I'm trying to create my first fxml java project and at the initialising stage I'm trying to set cell value factory for the table columnt, for example



      @FXML
private void initialize() {
agentId.setCellValueFactory(cellData -> cellData.getValue().getIdProperty());
.....}


and this is underlined red and gives an error that mentioned in title. Changing language level in project structure gives no effect. What else may be the reason of error?



UPD: I've found that it is nesessary to install java with lambdas that is not included to the official release. I did it and nevertheless it didn't help. I've downloaded it here










share|improve this question




















  • 1





    I assume you are setting the language level to 1.8?

    – James_D
    Apr 28 '15 at 15:20











  • @James_D it is not written that it is 1.8, but 8

    – Nikitin Mikhail
    Apr 29 '15 at 6:30











  • Have you tried using Android N sdk with Jack compiler?

    – IgorGanapolsky
    Mar 14 '16 at 20:41














7












7








7


6






I'm trying to create my first fxml java project and at the initialising stage I'm trying to set cell value factory for the table columnt, for example



      @FXML
private void initialize() {
agentId.setCellValueFactory(cellData -> cellData.getValue().getIdProperty());
.....}


and this is underlined red and gives an error that mentioned in title. Changing language level in project structure gives no effect. What else may be the reason of error?



UPD: I've found that it is nesessary to install java with lambdas that is not included to the official release. I did it and nevertheless it didn't help. I've downloaded it here










share|improve this question
















I'm trying to create my first fxml java project and at the initialising stage I'm trying to set cell value factory for the table columnt, for example



      @FXML
private void initialize() {
agentId.setCellValueFactory(cellData -> cellData.getValue().getIdProperty());
.....}


and this is underlined red and gives an error that mentioned in title. Changing language level in project structure gives no effect. What else may be the reason of error?



UPD: I've found that it is nesessary to install java with lambdas that is not included to the official release. I did it and nevertheless it didn't help. I've downloaded it here







intellij-idea lambda javafx ide






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Apr 30 '15 at 13:23







Nikitin Mikhail

















asked Apr 28 '15 at 13:51









Nikitin MikhailNikitin Mikhail

1,45992754




1,45992754








  • 1





    I assume you are setting the language level to 1.8?

    – James_D
    Apr 28 '15 at 15:20











  • @James_D it is not written that it is 1.8, but 8

    – Nikitin Mikhail
    Apr 29 '15 at 6:30











  • Have you tried using Android N sdk with Jack compiler?

    – IgorGanapolsky
    Mar 14 '16 at 20:41














  • 1





    I assume you are setting the language level to 1.8?

    – James_D
    Apr 28 '15 at 15:20











  • @James_D it is not written that it is 1.8, but 8

    – Nikitin Mikhail
    Apr 29 '15 at 6:30











  • Have you tried using Android N sdk with Jack compiler?

    – IgorGanapolsky
    Mar 14 '16 at 20:41








1




1





I assume you are setting the language level to 1.8?

– James_D
Apr 28 '15 at 15:20





I assume you are setting the language level to 1.8?

– James_D
Apr 28 '15 at 15:20













@James_D it is not written that it is 1.8, but 8

– Nikitin Mikhail
Apr 29 '15 at 6:30





@James_D it is not written that it is 1.8, but 8

– Nikitin Mikhail
Apr 29 '15 at 6:30













Have you tried using Android N sdk with Jack compiler?

– IgorGanapolsky
Mar 14 '16 at 20:41





Have you tried using Android N sdk with Jack compiler?

– IgorGanapolsky
Mar 14 '16 at 20:41












5 Answers
5






active

oldest

votes


















19














I had to do a few things to get rid of this problem.




  1. File > Project Structure > Project > Project SDK: Change it to Java 1.8.XX

  2. File > Project Structure > Project > Language Level: SDK 8 (in my case SDK default was already 8)

  3. File > Project Structure > Modules > Sources > SDK 8 (in my case SDK default was already 8)

  4. File > Settings > Build, Execution, Deployment > Compiler > Java Compiler > Project bytecode version > 1.8

  5. File > Settings > Build, Execution, Deployment > Compiler > Java Compiler > Per-module bytecode version > Target bytecode version > 1.8


That should do the trick.






share|improve this answer



















  • 1





    Awesome, thanks! Worked like a charm on Intellij!

    – Valter Silva
    Mar 13 '17 at 8:43











  • There is no java compiler option in Compiler tab.. please help

    – Kitwradr
    Oct 7 '18 at 20:06



















11














the answer is the following: I had to change the language level not only in project structure->project but in project structure-> modules too.






share|improve this answer



















  • 1





    This fixed my problem too. But it's not just lamdas - it's all higher-level language changes. I set my modules to use project default, which defers to the top-level.

    – end-user
    Dec 3 '15 at 13:08



















3














If you are use Android Studio version 3.2.1 ,you can change the language level using below mention steps:




  1. Go to project structure

  2. Under modules section,click on app.

  3. In the properties tab, change the Source Compatibility to 1.8.






share|improve this answer































    2















    1. Click on File, left top corner in Android Studio.

    2. Click on Project structure.

    3. Click on App.

    4. Choose Properties and set Source Compatibility to 1.8.






    share|improve this answer

































      1














      If you've been through the above and it's still not fixed it, and if you are setting up a new module, check your module source folder hasn't been added to the parent module. I found it was being compiled at 1.5 as this was the parent module setting (since the parent contained no java source). Updating that to 1.8 too finally got rid of the warning and removing the module's source folder from the parent module.
      File > Project Structure > Modules (parent of module) > Sources > Language level






      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',
        autoActivateHeartbeat: false,
        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%2f29921498%2flambda-expressions-are-not-supported-at-this-language-level-idea%23new-answer', 'question_page');
        }
        );

        Post as a guest















        Required, but never shown

























        5 Answers
        5






        active

        oldest

        votes








        5 Answers
        5






        active

        oldest

        votes









        active

        oldest

        votes






        active

        oldest

        votes









        19














        I had to do a few things to get rid of this problem.




        1. File > Project Structure > Project > Project SDK: Change it to Java 1.8.XX

        2. File > Project Structure > Project > Language Level: SDK 8 (in my case SDK default was already 8)

        3. File > Project Structure > Modules > Sources > SDK 8 (in my case SDK default was already 8)

        4. File > Settings > Build, Execution, Deployment > Compiler > Java Compiler > Project bytecode version > 1.8

        5. File > Settings > Build, Execution, Deployment > Compiler > Java Compiler > Per-module bytecode version > Target bytecode version > 1.8


        That should do the trick.






        share|improve this answer



















        • 1





          Awesome, thanks! Worked like a charm on Intellij!

          – Valter Silva
          Mar 13 '17 at 8:43











        • There is no java compiler option in Compiler tab.. please help

          – Kitwradr
          Oct 7 '18 at 20:06
















        19














        I had to do a few things to get rid of this problem.




        1. File > Project Structure > Project > Project SDK: Change it to Java 1.8.XX

        2. File > Project Structure > Project > Language Level: SDK 8 (in my case SDK default was already 8)

        3. File > Project Structure > Modules > Sources > SDK 8 (in my case SDK default was already 8)

        4. File > Settings > Build, Execution, Deployment > Compiler > Java Compiler > Project bytecode version > 1.8

        5. File > Settings > Build, Execution, Deployment > Compiler > Java Compiler > Per-module bytecode version > Target bytecode version > 1.8


        That should do the trick.






        share|improve this answer



















        • 1





          Awesome, thanks! Worked like a charm on Intellij!

          – Valter Silva
          Mar 13 '17 at 8:43











        • There is no java compiler option in Compiler tab.. please help

          – Kitwradr
          Oct 7 '18 at 20:06














        19












        19








        19







        I had to do a few things to get rid of this problem.




        1. File > Project Structure > Project > Project SDK: Change it to Java 1.8.XX

        2. File > Project Structure > Project > Language Level: SDK 8 (in my case SDK default was already 8)

        3. File > Project Structure > Modules > Sources > SDK 8 (in my case SDK default was already 8)

        4. File > Settings > Build, Execution, Deployment > Compiler > Java Compiler > Project bytecode version > 1.8

        5. File > Settings > Build, Execution, Deployment > Compiler > Java Compiler > Per-module bytecode version > Target bytecode version > 1.8


        That should do the trick.






        share|improve this answer













        I had to do a few things to get rid of this problem.




        1. File > Project Structure > Project > Project SDK: Change it to Java 1.8.XX

        2. File > Project Structure > Project > Language Level: SDK 8 (in my case SDK default was already 8)

        3. File > Project Structure > Modules > Sources > SDK 8 (in my case SDK default was already 8)

        4. File > Settings > Build, Execution, Deployment > Compiler > Java Compiler > Project bytecode version > 1.8

        5. File > Settings > Build, Execution, Deployment > Compiler > Java Compiler > Per-module bytecode version > Target bytecode version > 1.8


        That should do the trick.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Dec 9 '15 at 17:40









        Fernando RaposoFernando Raposo

        30127




        30127








        • 1





          Awesome, thanks! Worked like a charm on Intellij!

          – Valter Silva
          Mar 13 '17 at 8:43











        • There is no java compiler option in Compiler tab.. please help

          – Kitwradr
          Oct 7 '18 at 20:06














        • 1





          Awesome, thanks! Worked like a charm on Intellij!

          – Valter Silva
          Mar 13 '17 at 8:43











        • There is no java compiler option in Compiler tab.. please help

          – Kitwradr
          Oct 7 '18 at 20:06








        1




        1





        Awesome, thanks! Worked like a charm on Intellij!

        – Valter Silva
        Mar 13 '17 at 8:43





        Awesome, thanks! Worked like a charm on Intellij!

        – Valter Silva
        Mar 13 '17 at 8:43













        There is no java compiler option in Compiler tab.. please help

        – Kitwradr
        Oct 7 '18 at 20:06





        There is no java compiler option in Compiler tab.. please help

        – Kitwradr
        Oct 7 '18 at 20:06













        11














        the answer is the following: I had to change the language level not only in project structure->project but in project structure-> modules too.






        share|improve this answer



















        • 1





          This fixed my problem too. But it's not just lamdas - it's all higher-level language changes. I set my modules to use project default, which defers to the top-level.

          – end-user
          Dec 3 '15 at 13:08
















        11














        the answer is the following: I had to change the language level not only in project structure->project but in project structure-> modules too.






        share|improve this answer



















        • 1





          This fixed my problem too. But it's not just lamdas - it's all higher-level language changes. I set my modules to use project default, which defers to the top-level.

          – end-user
          Dec 3 '15 at 13:08














        11












        11








        11







        the answer is the following: I had to change the language level not only in project structure->project but in project structure-> modules too.






        share|improve this answer













        the answer is the following: I had to change the language level not only in project structure->project but in project structure-> modules too.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered May 7 '15 at 13:41









        Nikitin MikhailNikitin Mikhail

        1,45992754




        1,45992754








        • 1





          This fixed my problem too. But it's not just lamdas - it's all higher-level language changes. I set my modules to use project default, which defers to the top-level.

          – end-user
          Dec 3 '15 at 13:08














        • 1





          This fixed my problem too. But it's not just lamdas - it's all higher-level language changes. I set my modules to use project default, which defers to the top-level.

          – end-user
          Dec 3 '15 at 13:08








        1




        1





        This fixed my problem too. But it's not just lamdas - it's all higher-level language changes. I set my modules to use project default, which defers to the top-level.

        – end-user
        Dec 3 '15 at 13:08





        This fixed my problem too. But it's not just lamdas - it's all higher-level language changes. I set my modules to use project default, which defers to the top-level.

        – end-user
        Dec 3 '15 at 13:08











        3














        If you are use Android Studio version 3.2.1 ,you can change the language level using below mention steps:




        1. Go to project structure

        2. Under modules section,click on app.

        3. In the properties tab, change the Source Compatibility to 1.8.






        share|improve this answer




























          3














          If you are use Android Studio version 3.2.1 ,you can change the language level using below mention steps:




          1. Go to project structure

          2. Under modules section,click on app.

          3. In the properties tab, change the Source Compatibility to 1.8.






          share|improve this answer


























            3












            3








            3







            If you are use Android Studio version 3.2.1 ,you can change the language level using below mention steps:




            1. Go to project structure

            2. Under modules section,click on app.

            3. In the properties tab, change the Source Compatibility to 1.8.






            share|improve this answer













            If you are use Android Studio version 3.2.1 ,you can change the language level using below mention steps:




            1. Go to project structure

            2. Under modules section,click on app.

            3. In the properties tab, change the Source Compatibility to 1.8.







            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered Oct 20 '18 at 1:56









            Sanath KumarSanath Kumar

            312




            312























                2















                1. Click on File, left top corner in Android Studio.

                2. Click on Project structure.

                3. Click on App.

                4. Choose Properties and set Source Compatibility to 1.8.






                share|improve this answer






























                  2















                  1. Click on File, left top corner in Android Studio.

                  2. Click on Project structure.

                  3. Click on App.

                  4. Choose Properties and set Source Compatibility to 1.8.






                  share|improve this answer




























                    2












                    2








                    2








                    1. Click on File, left top corner in Android Studio.

                    2. Click on Project structure.

                    3. Click on App.

                    4. Choose Properties and set Source Compatibility to 1.8.






                    share|improve this answer
















                    1. Click on File, left top corner in Android Studio.

                    2. Click on Project structure.

                    3. Click on App.

                    4. Choose Properties and set Source Compatibility to 1.8.







                    share|improve this answer














                    share|improve this answer



                    share|improve this answer








                    edited Dec 29 '18 at 15:58









                    סטנלי גרונן

                    1,63472044




                    1,63472044










                    answered Dec 29 '18 at 10:15









                    AshuAshu

                    226




                    226























                        1














                        If you've been through the above and it's still not fixed it, and if you are setting up a new module, check your module source folder hasn't been added to the parent module. I found it was being compiled at 1.5 as this was the parent module setting (since the parent contained no java source). Updating that to 1.8 too finally got rid of the warning and removing the module's source folder from the parent module.
                        File > Project Structure > Modules (parent of module) > Sources > Language level






                        share|improve this answer




























                          1














                          If you've been through the above and it's still not fixed it, and if you are setting up a new module, check your module source folder hasn't been added to the parent module. I found it was being compiled at 1.5 as this was the parent module setting (since the parent contained no java source). Updating that to 1.8 too finally got rid of the warning and removing the module's source folder from the parent module.
                          File > Project Structure > Modules (parent of module) > Sources > Language level






                          share|improve this answer


























                            1












                            1








                            1







                            If you've been through the above and it's still not fixed it, and if you are setting up a new module, check your module source folder hasn't been added to the parent module. I found it was being compiled at 1.5 as this was the parent module setting (since the parent contained no java source). Updating that to 1.8 too finally got rid of the warning and removing the module's source folder from the parent module.
                            File > Project Structure > Modules (parent of module) > Sources > Language level






                            share|improve this answer













                            If you've been through the above and it's still not fixed it, and if you are setting up a new module, check your module source folder hasn't been added to the parent module. I found it was being compiled at 1.5 as this was the parent module setting (since the parent contained no java source). Updating that to 1.8 too finally got rid of the warning and removing the module's source folder from the parent module.
                            File > Project Structure > Modules (parent of module) > Sources > Language level







                            share|improve this answer












                            share|improve this answer



                            share|improve this answer










                            answered Jul 14 '17 at 15:15









                            nick.t.hackernick.t.hacker

                            111




                            111






























                                draft saved

                                draft discarded




















































                                Thanks for contributing an answer to Stack Overflow!


                                • Please be sure to answer the question. Provide details and share your research!

                                But avoid



                                • Asking for help, clarification, or responding to other answers.

                                • Making statements based on opinion; back them up with references or personal experience.


                                To learn more, see our tips on writing great answers.




                                draft saved


                                draft discarded














                                StackExchange.ready(
                                function () {
                                StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f29921498%2flambda-expressions-are-not-supported-at-this-language-level-idea%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







                                Popular posts from this blog

                                Mossoró

                                Error while reading .h5 file using the rhdf5 package in R

                                Pushsharp Apns notification error: 'InvalidToken'