Windows 8.1 x64上Eclipse windowbuilder pugin的设计视图提示“Unknown GUI toolkit”

slhcrj9b  于 2023-05-28  发布在  Eclipse
关注(0)|答案(6)|浏览(374)

我在Windows 4 Pro X64上使用Eclipse Kepler Release 1 X64和Java 7 X64,Eclipse WindowBuilder插件没有问题。但是自从我升级到Windows 8. 1 pro x64后,WindowBuilder就停止工作了。
首先,下面的按钮被冻结,不响应用户的点击。

如果在项目资源管理器中,我转到一些Java文件,我已经在Windows 7 x64中使用WindowBuilder插件创建,右键单击它并选择:* 使用> WindowBuilder Editor* 打开,源代码打开正常,但当我切换到 Design 视图时,我得到Unknown GUI toolkit

堆栈跟踪:

org.eclipse.wb.internal.core.utils.exception.DesignerException: 103 (Unknown GUI toolkit). guis.UsersAll
at org.eclipse.wb.internal.core.parser.JavaInfoParser.prepareParseContext(JavaInfoParser.java:1195)
at org.eclipse.wb.internal.core.parser.JavaInfoParser.parse(JavaInfoParser.java:242)
at org.eclipse.wb.internal.core.parser.JavaInfoParser.access$9(JavaInfoParser.java:238)
at org.eclipse.wb.internal.core.parser.JavaInfoParser$1.runObject(JavaInfoParser.java:153)
at org.eclipse.wb.internal.core.parser.JavaInfoParser$1.runObject(JavaInfoParser.java:1)
at org.eclipse.wb.internal.core.utils.execution.ExecutionUtils.runDesignTime(ExecutionUtils.java:159)
at org.eclipse.wb.internal.core.parser.JavaInfoParser.parse(JavaInfoParser.java:151)
at org.eclipse.wb.internal.core.editor.DesignPage.internal_refreshGEF(DesignPage.java:534)
at org.eclipse.wb.internal.core.editor.DesignPage.access$9(DesignPage.java:522)
at org.eclipse.wb.internal.core.editor.DesignPage$8$1.run(DesignPage.java:449)
at org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.java:180)
at org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchronizer.java:150)
at org.eclipse.swt.widgets.Display.syncExec(Display.java:4688)
at org.eclipse.wb.internal.core.editor.DesignPage$8.run(DesignPage.java:446)
at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:464)
at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:372)
at org.eclipse.jface.dialogs.ProgressMonitorDialog.run(ProgressMonitorDialog.java:507)
at org.eclipse.wb.internal.core.editor.DesignPage.internal_refreshGEF_withProgress(DesignPage.java:465)
at org.eclipse.wb.internal.core.editor.DesignPage.internal_refreshGEF(DesignPage.java:415)
at org.eclipse.wb.internal.core.editor.UndoManager.refreshDesignerEditor(UndoManager.java:381)
at org.eclipse.wb.internal.core.editor.UndoManager.activate(UndoManager.java:90)
at org.eclipse.wb.internal.core.editor.DesignPage.handleActiveState_True(DesignPage.java:263)
at org.eclipse.wb.internal.core.editor.DesignPage.handleActiveState(DesignPage.java:241)
at org.eclipse.wb.internal.core.editor.multi.DefaultMultiMode.showPage(DefaultMultiMode.java:125)
at org.eclipse.wb.internal.core.editor.multi.DefaultMultiMode$1.widgetSelected(DefaultMultiMode.java:63)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:248)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1057)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1081)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1066)
at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:778)
at org.eclipse.swt.custom.CTabFolder.setSelection(CTabFolder.java:3080)
at org.eclipse.swt.custom.CTabFolder.onMouse(CTabFolder.java:1772)
at org.eclipse.swt.custom.CTabFolder$1.handleEvent(CTabFolder.java:279)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1057)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4170)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3759)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1113)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:997)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:138)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:610)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:567)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:354)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:181)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:636)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:591)
at org.eclipse.equinox.launcher.Main.run(Main.java:1450)
at org.eclipse.equinox.launcher.Main.main(Main.java:1426)

那么谁能告诉我如何在Windows 8.1 pro x64上的Eclipse上使用WindowBuilder?

nkhmeac6

nkhmeac61#

您不需要重新安装整个WindowBuilder。您的工具包可能是SWT,而SWT设计器可能不包含在Eclipse下载中。所有你需要做的就是从“安装新软件”菜单中添加SWT设计器功能到你的WindowBuilder,选择默认的Luna安装站点,搜索“SWT设计器”。

rbpvctlc

rbpvctlc2#

我通过以下方式解决了这个问题:
1.取消启动窗口生成器
1.从here下载新版本窗口构建器的zip包。
1.然后我解压缩,并把它的解压缩目录内dropins文件夹的eclipse。
1.然后重启eclipse。
WindowBuilder运行良好。

yuvru6vn

yuvru6vn3#

对我有用的是获取jfxswt.jar文件并将其添加到我的项目库中。
C Drive > Program Files > Java Folder > jdk 1.8。. .(版本可能不同)> jre > lib

dgiusagp

dgiusagp4#

我面临着同样的问题,所以我删除了整个文件夹的工作区,因为我在学习的初始阶段,所以没有很多文件在工作区。然后我卸载了WindowBuilder插件并重新安装它,并创建了新的项目-->包-->WindowBuilder-->JFrame,它对我很有效。

xmd2e60i

xmd2e60i5#

在我的案例中,解决方案是添加:

requires java.desktop;

到我的module-info.java,正如在另一个答案中所建议的,在这里:https://stackoverflow.com/a/56729553/5538923

qltillow

qltillow6#

1.转到eclipse IDE
1.单击项目菜单
1.工程性质
1.转到Java构建路径
1.选择模块路径并添加库,然后选择1.7版本。

相关问题