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

前端 未结 11 1481
醉话见心
醉话见心 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:27

    Perhaps your project lacks in some necessary jars. Try this:

    • Right click your project>>build path>>select libraries>>add jars to add necessary jars in your project.
    • Go to your project's Properties, set the Java Compiler compliance level to 1.6 or above.
    • Go to your project's Properties,set the project facets. make the 'java' option to match your Java Compiler compliance level,such as '1.6'.

提交回复
热议问题