eclipse magic:...语法错误,只有在源级别为1.5或更高版本的情况下,varargs才可用 [英] eclipse magic: ... Syntax error, varargs are only available if source level is 1.5 or greater
本文介绍了eclipse magic:...语法错误,只有在源级别为1.5或更高版本的情况下,varargs才可用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
该怎么办?
解决方案
检查是否有效:
- 转到您的项目的
属性
- 在属性对话框中,选择
Java Compiler
节点 - 最后将
编译器合规级别
设置为1.5或更高。 - 重建项目。
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 not available and that it is only available if source level is 1.5.
What to do?
解决方案
Check whether this works:
- Go to your project's
Properties
- On the Properties dialog choose the
Java Compiler
node in the left tree. - Finally set the
Compiler compliance level
to 1.5 or more. - Rebuild the project.
这篇关于eclipse magic:...语法错误,只有在源级别为1.5或更高版本的情况下,varargs才可用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文