简体   繁体   中英

Eclipse Eclipse is running under 1.6, but 1.7 is needed

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.

Which Eclipse you're running? You definitely need to upgrade your Eclipse to a newer x64 Version to use Java 1.7.0

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM