Eclipse Oxygen : Incompatible java versions

人盡茶涼 提交于 2019-11-27 08:51:23

问题


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...


回答1:


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.




回答2:


I just asked the same question on 5th of May and I found the answer myself. Yet MY QUESTION is marked as "duplicate" whereas you were the one to ask the same exact question 3 days after me. Yall must be so desperate to get points. -_- Incompatible Java versions. Eclipse running under 0



来源:https://stackoverflow.com/questions/50227902/eclipse-oxygen-incompatible-java-versions

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!