Eclipse Oxygen Window Builder Error with Java SE 10.0.1

故事扮演 提交于 2019-12-29 08:27:43

问题


I am using Eclipse Oxygen .3a and using compliance with JDK Java SE-10.0.1 I am trying to use windows builder which worked with Oxygen and Java SE-9 on another computer, however, I can not get the IDE to open the "Design" tab. with this setup... I am also running JDK SE10

When I click on the design tab I get the following error:

Eclipse is running under 0, but this Java project has a 9 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 cant use a newer version of eclipse as I dont see anything out there. I've tried setting the compliance level to Java SE-9 with no change in operation (even opened and closed to get the same result). I was looking to see if I could download Java SE-9 again but I only see Java SE-10.0.1 out there for download. Can Java SE-9 still be acquired?

Another note I tried opening a new project with compliance set at Java SE 10 and I get the same results. Does anyone have any ideas on what else I could try?

Thank you


回答1:


I'm using Eclipse photon and usually get this problem when i try to switch to windowBuilder. I have installed both Java JDK 1.8 and Java 10 in my PC and this how i fix this:

  1. Open your project
  2. Right click on JRE System Library [Java SE-10]
  3. Click on Properties
  4. On the next window, change to Java SE-1.8 in the Execution environment comboBox
  5. Apply and close
  6. Retry to open project with windowBuilder.



回答2:


I recently had an issue with the program I was writing that was difficult to debug when I realized that I had a JDK update! So I went to JDK 10.0.1 and had the same exact issue you described above. Perhaps Windowbuilder hasn't been updated to be compatible with 10.0.1 yet.

9.0.1 works great for me on Windows 10, though I may try 9.0.4 Here is a link to the archived versions.

http://jdk.java.net/archive/

Uninstall 10.0.1 then unpack the compressed file to the correct location (program files\Java) (program files(x86)\Java) whichever you're using.




回答3:


I'd like to add - dear people, notice that you should use not just Eclipse Oxygen 3.a, but just right Eclipse IDE for Java EE Developers. (link for Oxygen)

It is important that you install the JDK and Oxygen IDE of the same architecture (both must be x86 or x64).



来源:https://stackoverflow.com/questions/50124714/eclipse-oxygen-window-builder-error-with-java-se-10-0-1

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