Eclipse Window Builder error under Java 10

为君一笑 提交于 2019-12-11 05:13:56

问题


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.

That is the error I'm getting when I installed the window builder. I have made sure both Eclipse and the project are running the same versions yet it is still giving me that error.

Edit:

proof


回答1:


A MORE SIMPLE SOLUTION: This problem was giving me some difficulty and I hated the hassle of rolling back to a previous version of java to fix it.

There were some developers that workshopped an alternative solution that involved using the install new software function and updating the version of WB via this function. Worked beautifully. The solution is as follows

Wim Jongman CLA Friend 2018-06-06 11:31:54 EDT

...I just got a report back from a user that tells me that upgrading to WB 19.2. helped to solve this issue for him:

Check the installing new software link from [1] Use the update site from [2] Select to install everything except stuff that requires WDP

[1] http://help.eclipse.org/oxygen/index.jsp?topic=%2Forg.eclipse.platform.doc.user%2Ftasks%2Ftasks-129.htm&cp=0_3_17

[2] http://download.eclipse.org/windowbuilder/WB/integration/4.8/




回答2:


Solution FOUND

Drop down to Java 9 and make sure to have 3.a Eclipse and you are good! http://www.oracle.com/technetwork/java/javase/downloads/java-archive-javase9-3934878.html There is a link to get Java 9.

Thank you, Everyone, that helped!!




回答3:


This problem may still occur with WindwowBuilder 1.9.2 and JDK 11 and may be the result of Eclipse itself being launched with an older Java virtual machine.

To solve it, first verify that Project JDK compliance is 11 (Project..Java Compiler..JDK Compliance), and that Java Build Path (Project..Build Path..Libraries) is set to JavaSE-11 (Both settings can also be configured as default for all projects in Window..Preferences..Java..Compiler and Java..InstalledJREs..ExecutionEnvironment).

If that does not solve the problem, then go to Help..About Eclipse IDE..Installation Details..Configuration and check the -vm entry to make sure that Eclipse is started with JDK 11. On Windows the -vm property may be set to something like: C:\Program Files\Java\jdk-11.0.4\bin\server\jvm.dll

If the configuration's -vm entry points to a lower Java version, then close Eclipse and launch it from the command line by appending ('-vm "path-to-JDK11\bin\server\jvm.dll"). You can also check the eclipse.ini file for the -vm entry (or add the -vm entry to the eclipse.ini file).



来源:https://stackoverflow.com/questions/50263816/eclipse-window-builder-error-under-java-10

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