eclipse magic:...语法错误,只有在源级别为1.5或更高版本的情况下,varargs才可用 [英] eclipse magic: ... Syntax error, varargs are only available if source level is 1.5 or greater

查看:397
本文介绍了eclipse magic:...语法错误,只有在源级别为1.5或更高版本的情况下,varargs才可用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

昨天我在日食中做了一个项目,正在工作,编译。我使用Eclipse Galileo进行Java EE。今天我打开eclipse,看到很多错误,说这些东西是不可用的,只有在源级别是1.5时才可用。



该怎么办?

解决方案

检查是否有效:


  1. 转到您的项目的属性

  2. 在属性对话框中,选择 Java Compiler 节点

  3. 最后将编译器合规级别设置为1.5或更高。

  4. 重建项目。


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:

  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.
  4. Rebuild the project.

这篇关于eclipse magic:...语法错误,只有在源级别为1.5或更高版本的情况下,varargs才可用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆