I have just installed Eclipse Oxygen and created a JFrame project. While switching from source view to design view, i am getting "incompatible java version error".
Full error Desc : Eclipse is running under 0, but this Java project has a 10 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 checked version in windows --> preferences --> java --> compiler where compiler compliance level is 10
and checked in Project Properties --> java compiler --> compiler compliance level is 10.
How to resolve this problem? i surfed google but nothing works...
解决方案
Windowbuilder currently does not work with Java 9 or 10. This is described in Eclipse bug 517291.
Running Eclipse with Java 8 seems to be the only way to run windowbuilder.