解决WBPro(swtdesigner、Swingdesigner)可视化编辑是出现
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.
问题原因:
MyEclipse使用自带jre版本为1.5因此需要替换为1.6.
解决办法:
我的是MyEclipse 7.0 M2,安装路径:D:\Program Files\MyEclipse 7.0 M2
首先关闭eclipse后删除D:\Program Files\MyEclipse 7.0 M2下的jre目录,然后拷贝JAVA_HOME下的jre目录(我的是jre1.6.0_18)到D:\Program Files\MyEclipse 7.0 M2下改名为jre
在启动eclipse就可以了