简体   繁体   中英

eclipse windowbuilder pro - incompatible java versions

Whenever I click on the design view I get this error message...

Incompatible Java Versions

Eclipse is running under 1.5, but this Java project has a 1.6 Java compliance level, so WindowBuilder will not be able to load classes from this project. Use a lower level of Java for the project, or run Eclipse using a newer Java version.

I am running a fresh install of Indigo 3.7 Eclipse Classic with a few extra plugins, and installed WindowBuilder Pro from the 3.7 url.

I also have jre6 and jdk1.6.0_21 which I got in with javaEE and GlassFish also fresh installs.

What's happening here and can I fix it?

Consider using -vm parameter to eclipse.ini.

-vm
/path/to/jdk/bin

And then cleaning your eclipse workspace ;)

Additional information about -vm option can be found here .

Note the format of the -vm option - it is important to be exact:

  • The -vm option and its value (the path) must be on separate lines.
  • The value must be the full absolute or relative path to the Java executable, not just to the Java home directory.
  • The -vm option must occur before the -vmargs option, since everything after -vmargs is passed directly to the JVM.

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