1
votes

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?

1

1 Answers

-1
votes

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.