Annotations are only available if source level is 5.0 syntax error java












2














I am compiling a normal java program with @Override annotation(I downloaded a source from internet from some tutorial). Now the javac is complaing that



annotations are only available if source level is 5.0



Every question on SO or other site relates this to eclipse but I am not using eclipse. I am compiling the code from command line. How can I resolve the problem.



Here is some information that may be useful:



$java -version
java version "1.6.0_13-b03
(some other not so useful info)


Edit:



$javac -version
Eclipse Java Compiler v_677_R32x, 3.2.1 release,....


Command for compiling:



javac User.java


User.java is just normal java file. No errors there for sure except this one.










share|improve this question
























  • please provide your whole command line for compiling, and also the output of javac -version
    – radai
    Sep 5 '13 at 7:44










  • @radai Please look at the edit. It is using some eclipse compiler. How can I change that
    – Aman Deep Gautam
    Sep 5 '13 at 7:50








  • 1




    the java compiler on the path is the eclipse compiler, and not the oracle JDK compiler. looks like youre using eclipse after all :-) please fix your path so that the jdk compiler gets invoked.
    – radai
    Sep 5 '13 at 8:47










  • @radai hmm...I figured that out while I was writing edit..:)
    – Aman Deep Gautam
    Sep 5 '13 at 8:49
















2














I am compiling a normal java program with @Override annotation(I downloaded a source from internet from some tutorial). Now the javac is complaing that



annotations are only available if source level is 5.0



Every question on SO or other site relates this to eclipse but I am not using eclipse. I am compiling the code from command line. How can I resolve the problem.



Here is some information that may be useful:



$java -version
java version "1.6.0_13-b03
(some other not so useful info)


Edit:



$javac -version
Eclipse Java Compiler v_677_R32x, 3.2.1 release,....


Command for compiling:



javac User.java


User.java is just normal java file. No errors there for sure except this one.










share|improve this question
























  • please provide your whole command line for compiling, and also the output of javac -version
    – radai
    Sep 5 '13 at 7:44










  • @radai Please look at the edit. It is using some eclipse compiler. How can I change that
    – Aman Deep Gautam
    Sep 5 '13 at 7:50








  • 1




    the java compiler on the path is the eclipse compiler, and not the oracle JDK compiler. looks like youre using eclipse after all :-) please fix your path so that the jdk compiler gets invoked.
    – radai
    Sep 5 '13 at 8:47










  • @radai hmm...I figured that out while I was writing edit..:)
    – Aman Deep Gautam
    Sep 5 '13 at 8:49














2












2








2


1





I am compiling a normal java program with @Override annotation(I downloaded a source from internet from some tutorial). Now the javac is complaing that



annotations are only available if source level is 5.0



Every question on SO or other site relates this to eclipse but I am not using eclipse. I am compiling the code from command line. How can I resolve the problem.



Here is some information that may be useful:



$java -version
java version "1.6.0_13-b03
(some other not so useful info)


Edit:



$javac -version
Eclipse Java Compiler v_677_R32x, 3.2.1 release,....


Command for compiling:



javac User.java


User.java is just normal java file. No errors there for sure except this one.










share|improve this question















I am compiling a normal java program with @Override annotation(I downloaded a source from internet from some tutorial). Now the javac is complaing that



annotations are only available if source level is 5.0



Every question on SO or other site relates this to eclipse but I am not using eclipse. I am compiling the code from command line. How can I resolve the problem.



Here is some information that may be useful:



$java -version
java version "1.6.0_13-b03
(some other not so useful info)


Edit:



$javac -version
Eclipse Java Compiler v_677_R32x, 3.2.1 release,....


Command for compiling:



javac User.java


User.java is just normal java file. No errors there for sure except this one.







java compiler-errors syntax-error javac






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Apr 10 '16 at 18:00









xiº

2,71931334




2,71931334










asked Sep 5 '13 at 7:43









Aman Deep GautamAman Deep Gautam

2,6271051104




2,6271051104












  • please provide your whole command line for compiling, and also the output of javac -version
    – radai
    Sep 5 '13 at 7:44










  • @radai Please look at the edit. It is using some eclipse compiler. How can I change that
    – Aman Deep Gautam
    Sep 5 '13 at 7:50








  • 1




    the java compiler on the path is the eclipse compiler, and not the oracle JDK compiler. looks like youre using eclipse after all :-) please fix your path so that the jdk compiler gets invoked.
    – radai
    Sep 5 '13 at 8:47










  • @radai hmm...I figured that out while I was writing edit..:)
    – Aman Deep Gautam
    Sep 5 '13 at 8:49


















  • please provide your whole command line for compiling, and also the output of javac -version
    – radai
    Sep 5 '13 at 7:44










  • @radai Please look at the edit. It is using some eclipse compiler. How can I change that
    – Aman Deep Gautam
    Sep 5 '13 at 7:50








  • 1




    the java compiler on the path is the eclipse compiler, and not the oracle JDK compiler. looks like youre using eclipse after all :-) please fix your path so that the jdk compiler gets invoked.
    – radai
    Sep 5 '13 at 8:47










  • @radai hmm...I figured that out while I was writing edit..:)
    – Aman Deep Gautam
    Sep 5 '13 at 8:49
















please provide your whole command line for compiling, and also the output of javac -version
– radai
Sep 5 '13 at 7:44




please provide your whole command line for compiling, and also the output of javac -version
– radai
Sep 5 '13 at 7:44












@radai Please look at the edit. It is using some eclipse compiler. How can I change that
– Aman Deep Gautam
Sep 5 '13 at 7:50






@radai Please look at the edit. It is using some eclipse compiler. How can I change that
– Aman Deep Gautam
Sep 5 '13 at 7:50






1




1




the java compiler on the path is the eclipse compiler, and not the oracle JDK compiler. looks like youre using eclipse after all :-) please fix your path so that the jdk compiler gets invoked.
– radai
Sep 5 '13 at 8:47




the java compiler on the path is the eclipse compiler, and not the oracle JDK compiler. looks like youre using eclipse after all :-) please fix your path so that the jdk compiler gets invoked.
– radai
Sep 5 '13 at 8:47












@radai hmm...I figured that out while I was writing edit..:)
– Aman Deep Gautam
Sep 5 '13 at 8:49




@radai hmm...I figured that out while I was writing edit..:)
– Aman Deep Gautam
Sep 5 '13 at 8:49












5 Answers
5






active

oldest

votes


















0














In project properties->Java Build Path/Libraries tab make sure you have JRE System Library 6 ennvironment.



Since you aren't building through eclipse, you will have to use the -source parameter to the compiler to tell it to use a higher language level. Interestingly it seems the default in the eclipse compiler is not 6 which the oracle compiler uses.






share|improve this answer























  • I do not have a eclipse project for this file. Why do I need to do this
    – Aman Deep Gautam
    Sep 5 '13 at 7:57










  • Ah, I assumed you were using eclipse. In that case, just use the -source option to specify 5 (or 6), which is what that menu setting does anyway.
    – caskey
    Sep 5 '13 at 7:58












  • thanks. Can we permanently fix problem(not with alias or something).
    – Aman Deep Gautam
    Sep 5 '13 at 8:00










  • I'm confused that you're using the eclipse compiler but not eclipse. You could install a full JDK and use it instead. The properties file which controls the eclipse installation is probably not meant to be manipulated externally.
    – caskey
    Sep 5 '13 at 8:02



















3














Hi resolved the above issue, please follow the steps below:




  1. Right click on your project and select Properties.

  2. Go to the Java Compiler and check the enable project specific settings.

  3. Set Jdk versions according to jdk which is installed in your system.
    ex: 1.5, 1.6, 1.7






share|improve this answer































    0














    In command line use -source option of javac command to specify the version. Here is the official documentation of javac:
    http://docs.oracle.com/javase/1.4.2/docs/tooldocs/windows/javac.html






    share|improve this answer





















    • Can you tell which version to specify that will not give such errors
      – Aman Deep Gautam
      Sep 5 '13 at 7:58










    • You must specify 1.5 or higher version
      – Manitra
      Sep 5 '13 at 8:02



















    0














    I ran into a similar problem when deploying a portlet project for Liferay 6.2. The build tool ANT always gave me following Syntax Error:




    Syntax error, annotations are only available if source level is 1.5 or greater




    I tried to set the used Java version and so on but all was set up correct. I solved the problem through editing the build.-username-.properties file for the



    ant deploy


    command. I just changed the compiler to modern and commented the default org.eclipse-compiler out:



    javac.compiler=modern
    #javac.compiler=org.eclipse.jdt.core.JDTCompilerAdapter


    After that step my project was build and deployed successfully.



    Was just searching a while to get that working so I though it maybe would be helpful for someone if I write it down on SO on one of the questions I checked regarding this problem.






    share|improve this answer































      0














      Have sorted this legacy issue by the following steps:



      1.Go to your project's Properties



      2.On the Properties dialog choose the Java Compiler node in the left tree.



      3.Finally set the Compiler compliance level to 1.5 or more as that's what for
      eclipse was crying :-0



      4.Rebuild the project






      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%2f18630525%2fannotations-are-only-available-if-source-level-is-5-0-syntax-error-java%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









        0














        In project properties->Java Build Path/Libraries tab make sure you have JRE System Library 6 ennvironment.



        Since you aren't building through eclipse, you will have to use the -source parameter to the compiler to tell it to use a higher language level. Interestingly it seems the default in the eclipse compiler is not 6 which the oracle compiler uses.






        share|improve this answer























        • I do not have a eclipse project for this file. Why do I need to do this
          – Aman Deep Gautam
          Sep 5 '13 at 7:57










        • Ah, I assumed you were using eclipse. In that case, just use the -source option to specify 5 (or 6), which is what that menu setting does anyway.
          – caskey
          Sep 5 '13 at 7:58












        • thanks. Can we permanently fix problem(not with alias or something).
          – Aman Deep Gautam
          Sep 5 '13 at 8:00










        • I'm confused that you're using the eclipse compiler but not eclipse. You could install a full JDK and use it instead. The properties file which controls the eclipse installation is probably not meant to be manipulated externally.
          – caskey
          Sep 5 '13 at 8:02
















        0














        In project properties->Java Build Path/Libraries tab make sure you have JRE System Library 6 ennvironment.



        Since you aren't building through eclipse, you will have to use the -source parameter to the compiler to tell it to use a higher language level. Interestingly it seems the default in the eclipse compiler is not 6 which the oracle compiler uses.






        share|improve this answer























        • I do not have a eclipse project for this file. Why do I need to do this
          – Aman Deep Gautam
          Sep 5 '13 at 7:57










        • Ah, I assumed you were using eclipse. In that case, just use the -source option to specify 5 (or 6), which is what that menu setting does anyway.
          – caskey
          Sep 5 '13 at 7:58












        • thanks. Can we permanently fix problem(not with alias or something).
          – Aman Deep Gautam
          Sep 5 '13 at 8:00










        • I'm confused that you're using the eclipse compiler but not eclipse. You could install a full JDK and use it instead. The properties file which controls the eclipse installation is probably not meant to be manipulated externally.
          – caskey
          Sep 5 '13 at 8:02














        0












        0








        0






        In project properties->Java Build Path/Libraries tab make sure you have JRE System Library 6 ennvironment.



        Since you aren't building through eclipse, you will have to use the -source parameter to the compiler to tell it to use a higher language level. Interestingly it seems the default in the eclipse compiler is not 6 which the oracle compiler uses.






        share|improve this answer














        In project properties->Java Build Path/Libraries tab make sure you have JRE System Library 6 ennvironment.



        Since you aren't building through eclipse, you will have to use the -source parameter to the compiler to tell it to use a higher language level. Interestingly it seems the default in the eclipse compiler is not 6 which the oracle compiler uses.







        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited Sep 5 '13 at 8:00

























        answered Sep 5 '13 at 7:52









        caskeycaskey

        9,27322225




        9,27322225












        • I do not have a eclipse project for this file. Why do I need to do this
          – Aman Deep Gautam
          Sep 5 '13 at 7:57










        • Ah, I assumed you were using eclipse. In that case, just use the -source option to specify 5 (or 6), which is what that menu setting does anyway.
          – caskey
          Sep 5 '13 at 7:58












        • thanks. Can we permanently fix problem(not with alias or something).
          – Aman Deep Gautam
          Sep 5 '13 at 8:00










        • I'm confused that you're using the eclipse compiler but not eclipse. You could install a full JDK and use it instead. The properties file which controls the eclipse installation is probably not meant to be manipulated externally.
          – caskey
          Sep 5 '13 at 8:02


















        • I do not have a eclipse project for this file. Why do I need to do this
          – Aman Deep Gautam
          Sep 5 '13 at 7:57










        • Ah, I assumed you were using eclipse. In that case, just use the -source option to specify 5 (or 6), which is what that menu setting does anyway.
          – caskey
          Sep 5 '13 at 7:58












        • thanks. Can we permanently fix problem(not with alias or something).
          – Aman Deep Gautam
          Sep 5 '13 at 8:00










        • I'm confused that you're using the eclipse compiler but not eclipse. You could install a full JDK and use it instead. The properties file which controls the eclipse installation is probably not meant to be manipulated externally.
          – caskey
          Sep 5 '13 at 8:02
















        I do not have a eclipse project for this file. Why do I need to do this
        – Aman Deep Gautam
        Sep 5 '13 at 7:57




        I do not have a eclipse project for this file. Why do I need to do this
        – Aman Deep Gautam
        Sep 5 '13 at 7:57












        Ah, I assumed you were using eclipse. In that case, just use the -source option to specify 5 (or 6), which is what that menu setting does anyway.
        – caskey
        Sep 5 '13 at 7:58






        Ah, I assumed you were using eclipse. In that case, just use the -source option to specify 5 (or 6), which is what that menu setting does anyway.
        – caskey
        Sep 5 '13 at 7:58














        thanks. Can we permanently fix problem(not with alias or something).
        – Aman Deep Gautam
        Sep 5 '13 at 8:00




        thanks. Can we permanently fix problem(not with alias or something).
        – Aman Deep Gautam
        Sep 5 '13 at 8:00












        I'm confused that you're using the eclipse compiler but not eclipse. You could install a full JDK and use it instead. The properties file which controls the eclipse installation is probably not meant to be manipulated externally.
        – caskey
        Sep 5 '13 at 8:02




        I'm confused that you're using the eclipse compiler but not eclipse. You could install a full JDK and use it instead. The properties file which controls the eclipse installation is probably not meant to be manipulated externally.
        – caskey
        Sep 5 '13 at 8:02













        3














        Hi resolved the above issue, please follow the steps below:




        1. Right click on your project and select Properties.

        2. Go to the Java Compiler and check the enable project specific settings.

        3. Set Jdk versions according to jdk which is installed in your system.
          ex: 1.5, 1.6, 1.7






        share|improve this answer




























          3














          Hi resolved the above issue, please follow the steps below:




          1. Right click on your project and select Properties.

          2. Go to the Java Compiler and check the enable project specific settings.

          3. Set Jdk versions according to jdk which is installed in your system.
            ex: 1.5, 1.6, 1.7






          share|improve this answer


























            3












            3








            3






            Hi resolved the above issue, please follow the steps below:




            1. Right click on your project and select Properties.

            2. Go to the Java Compiler and check the enable project specific settings.

            3. Set Jdk versions according to jdk which is installed in your system.
              ex: 1.5, 1.6, 1.7






            share|improve this answer














            Hi resolved the above issue, please follow the steps below:




            1. Right click on your project and select Properties.

            2. Go to the Java Compiler and check the enable project specific settings.

            3. Set Jdk versions according to jdk which is installed in your system.
              ex: 1.5, 1.6, 1.7







            share|improve this answer














            share|improve this answer



            share|improve this answer








            edited Apr 3 '14 at 13:03









            Sujith Thankachan

            2,91411525




            2,91411525










            answered Apr 3 '14 at 12:41









            HariHari

            312




            312























                0














                In command line use -source option of javac command to specify the version. Here is the official documentation of javac:
                http://docs.oracle.com/javase/1.4.2/docs/tooldocs/windows/javac.html






                share|improve this answer





















                • Can you tell which version to specify that will not give such errors
                  – Aman Deep Gautam
                  Sep 5 '13 at 7:58










                • You must specify 1.5 or higher version
                  – Manitra
                  Sep 5 '13 at 8:02
















                0














                In command line use -source option of javac command to specify the version. Here is the official documentation of javac:
                http://docs.oracle.com/javase/1.4.2/docs/tooldocs/windows/javac.html






                share|improve this answer





















                • Can you tell which version to specify that will not give such errors
                  – Aman Deep Gautam
                  Sep 5 '13 at 7:58










                • You must specify 1.5 or higher version
                  – Manitra
                  Sep 5 '13 at 8:02














                0












                0








                0






                In command line use -source option of javac command to specify the version. Here is the official documentation of javac:
                http://docs.oracle.com/javase/1.4.2/docs/tooldocs/windows/javac.html






                share|improve this answer












                In command line use -source option of javac command to specify the version. Here is the official documentation of javac:
                http://docs.oracle.com/javase/1.4.2/docs/tooldocs/windows/javac.html







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Sep 5 '13 at 7:56









                ManitraManitra

                793




                793












                • Can you tell which version to specify that will not give such errors
                  – Aman Deep Gautam
                  Sep 5 '13 at 7:58










                • You must specify 1.5 or higher version
                  – Manitra
                  Sep 5 '13 at 8:02


















                • Can you tell which version to specify that will not give such errors
                  – Aman Deep Gautam
                  Sep 5 '13 at 7:58










                • You must specify 1.5 or higher version
                  – Manitra
                  Sep 5 '13 at 8:02
















                Can you tell which version to specify that will not give such errors
                – Aman Deep Gautam
                Sep 5 '13 at 7:58




                Can you tell which version to specify that will not give such errors
                – Aman Deep Gautam
                Sep 5 '13 at 7:58












                You must specify 1.5 or higher version
                – Manitra
                Sep 5 '13 at 8:02




                You must specify 1.5 or higher version
                – Manitra
                Sep 5 '13 at 8:02











                0














                I ran into a similar problem when deploying a portlet project for Liferay 6.2. The build tool ANT always gave me following Syntax Error:




                Syntax error, annotations are only available if source level is 1.5 or greater




                I tried to set the used Java version and so on but all was set up correct. I solved the problem through editing the build.-username-.properties file for the



                ant deploy


                command. I just changed the compiler to modern and commented the default org.eclipse-compiler out:



                javac.compiler=modern
                #javac.compiler=org.eclipse.jdt.core.JDTCompilerAdapter


                After that step my project was build and deployed successfully.



                Was just searching a while to get that working so I though it maybe would be helpful for someone if I write it down on SO on one of the questions I checked regarding this problem.






                share|improve this answer




























                  0














                  I ran into a similar problem when deploying a portlet project for Liferay 6.2. The build tool ANT always gave me following Syntax Error:




                  Syntax error, annotations are only available if source level is 1.5 or greater




                  I tried to set the used Java version and so on but all was set up correct. I solved the problem through editing the build.-username-.properties file for the



                  ant deploy


                  command. I just changed the compiler to modern and commented the default org.eclipse-compiler out:



                  javac.compiler=modern
                  #javac.compiler=org.eclipse.jdt.core.JDTCompilerAdapter


                  After that step my project was build and deployed successfully.



                  Was just searching a while to get that working so I though it maybe would be helpful for someone if I write it down on SO on one of the questions I checked regarding this problem.






                  share|improve this answer


























                    0












                    0








                    0






                    I ran into a similar problem when deploying a portlet project for Liferay 6.2. The build tool ANT always gave me following Syntax Error:




                    Syntax error, annotations are only available if source level is 1.5 or greater




                    I tried to set the used Java version and so on but all was set up correct. I solved the problem through editing the build.-username-.properties file for the



                    ant deploy


                    command. I just changed the compiler to modern and commented the default org.eclipse-compiler out:



                    javac.compiler=modern
                    #javac.compiler=org.eclipse.jdt.core.JDTCompilerAdapter


                    After that step my project was build and deployed successfully.



                    Was just searching a while to get that working so I though it maybe would be helpful for someone if I write it down on SO on one of the questions I checked regarding this problem.






                    share|improve this answer














                    I ran into a similar problem when deploying a portlet project for Liferay 6.2. The build tool ANT always gave me following Syntax Error:




                    Syntax error, annotations are only available if source level is 1.5 or greater




                    I tried to set the used Java version and so on but all was set up correct. I solved the problem through editing the build.-username-.properties file for the



                    ant deploy


                    command. I just changed the compiler to modern and commented the default org.eclipse-compiler out:



                    javac.compiler=modern
                    #javac.compiler=org.eclipse.jdt.core.JDTCompilerAdapter


                    After that step my project was build and deployed successfully.



                    Was just searching a while to get that working so I though it maybe would be helpful for someone if I write it down on SO on one of the questions I checked regarding this problem.







                    share|improve this answer














                    share|improve this answer



                    share|improve this answer








                    edited Aug 29 '17 at 21:10

























                    answered Aug 29 '17 at 20:51









                    Torsten BarthelTorsten Barthel

                    1,0841215




                    1,0841215























                        0














                        Have sorted this legacy issue by the following steps:



                        1.Go to your project's Properties



                        2.On the Properties dialog choose the Java Compiler node in the left tree.



                        3.Finally set the Compiler compliance level to 1.5 or more as that's what for
                        eclipse was crying :-0



                        4.Rebuild the project






                        share|improve this answer


























                          0














                          Have sorted this legacy issue by the following steps:



                          1.Go to your project's Properties



                          2.On the Properties dialog choose the Java Compiler node in the left tree.



                          3.Finally set the Compiler compliance level to 1.5 or more as that's what for
                          eclipse was crying :-0



                          4.Rebuild the project






                          share|improve this answer
























                            0












                            0








                            0






                            Have sorted this legacy issue by the following steps:



                            1.Go to your project's Properties



                            2.On the Properties dialog choose the Java Compiler node in the left tree.



                            3.Finally set the Compiler compliance level to 1.5 or more as that's what for
                            eclipse was crying :-0



                            4.Rebuild the project






                            share|improve this answer












                            Have sorted this legacy issue by the following steps:



                            1.Go to your project's Properties



                            2.On the Properties dialog choose the Java Compiler node in the left tree.



                            3.Finally set the Compiler compliance level to 1.5 or more as that's what for
                            eclipse was crying :-0



                            4.Rebuild the project







                            share|improve this answer












                            share|improve this answer



                            share|improve this answer










                            answered Dec 28 '18 at 5:42









                            LuckyLucky

                            13




                            13






























                                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.





                                Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


                                Please pay close attention to the following guidance:


                                • 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%2f18630525%2fannotations-are-only-available-if-source-level-is-5-0-syntax-error-java%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

                                Angular Downloading a file using contenturl with Basic Authentication

                                Olmecas

                                Can't read property showImagePicker of undefined in react native iOS