Eclipse Eclipse运行在1.6以下,但需要1.7 [英] Eclipse Eclipse is running under 1.6, but 1.7 is needed
问题描述
如何解决Java中的不兼容Java版本在Mac中的错误?
您可能已经安装了Java 1.7 SDK Eclipse看起来像旧版本一样(1.6)。
WindowBuilder集成到Eclipse中,并将使用与Eclipse(即1.6版本)相同的Java实例。
但是,您的项目将使用Java 7。 WindowBuilder(Java 6)将无法从您的项目使用的较高版本加载类(Java 7)。
您需要做的是:
配置您的eclipse从较新的(Java 7)版本开始。这可以在 Eclipse.ini 文件中完成。
I have just installed WindowBuilder for Eclipse and java 1.7 JDK, but when I create a new JFrame in Eclipse, and try to open the "design-view" in WindowBuilder I get the following error: "Eclipse is running under 1.6, but the Java project has a 1.7 Java compliance level, so WindowBuilder will not be able to load classes from the project. Use a lower level of Java for the project, or run Eclipse using a newer Java version." How to Resolve Incompatible Java version Error in Eclipse in mac?
You might have installed the Java 1.7 SDK but it looks like Eclipse is started with the older one (1.6). The WindowBuilder is integrated into Eclipse and will use the same Java instance as Eclipse (that is the 1.6 version).
However your project will use Java 7. The WindowBuilder (Java 6) will be unable to load classes from the higher version which your project uses (Java 7).
What you need to do is: Configure your eclipse to start with the newer (Java 7) version. This can be done in the Eclipse.ini file.
这篇关于Eclipse Eclipse运行在1.6以下,但需要1.7的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!