eclipse magic: … Syntax error, varargs are only available if source level is 1.5 or greater

前端 未结 11 1485
醉话见心
醉话见心 2020-12-09 15:06

Yesterday I made a project in eclipse, and it was working, compiling. I used Eclipse Galileo for Java EE. Today I open eclipse and see lots of errors saying that stuff is no

11条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-09 15:20

    Try this:

    Go to your project's Properties, set the Java Compiler compliance level to 1.6, let it rebuild the project, then switched back to 1.7 and rebuild it again.

    It worked for me :)

提交回复
热议问题