Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot create a FXML document with JavaFX and SceneBuilder on Eclipse #92

Open
bjj33 opened this issue Dec 16, 2022 · 38 comments
Open

Cannot create a FXML document with JavaFX and SceneBuilder on Eclipse #92

bjj33 opened this issue Dec 16, 2022 · 38 comments
Assignees
Milestone

Comments

@bjj33
Copy link

bjj33 commented Dec 16, 2022

Error when trying to make a New FXML document. When I right click on my project -> go to new -> other -> JavaFX folder -> New FXML document, if I click "Next" it does nothing. If I double click I get the following error:
"An error has occurred. See error log for more details. org/eclipse/jface/databinding/swt/WidgetProperties"

The following is the error message, stack trace, and session information.

Message: Problems occurred when invoking code from plug-in: "org.eclipse.jface".

Stack Trace:
java.lang.NoClassDefFoundError: org/eclipse/jface/databinding/swt/WidgetProperties
	at org.eclipse.fx.ide.ui.wizards.AbstractJDTElementPage.createControl(AbstractJDTElementPage.java:109)
	at org.eclipse.jface.wizard.Wizard.createPageControls(Wizard.java:178)
	at org.eclipse.jface.wizard.WizardDialog.createPageControls(WizardDialog.java:744)
	at org.eclipse.jface.wizard.WizardDialog.setWizard(WizardDialog.java:1182)
	at org.eclipse.jface.wizard.WizardDialog.updateForPage(WizardDialog.java:1235)
	at org.eclipse.jface.wizard.WizardDialog.lambda$3(WizardDialog.java:1223)
	at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:74)
	at org.eclipse.jface.wizard.WizardDialog.showPage(WizardDialog.java:1223)
	at org.eclipse.ui.internal.dialogs.NewWizardSelectionPage.advanceToNextPageOrFinish(NewWizardSelectionPage.java:73)
	at org.eclipse.ui.internal.dialogs.NewWizardNewPage.lambda$0(NewWizardNewPage.java:342)
	at org.eclipse.jface.viewers.StructuredViewer$1.run(StructuredViewer.java:780)
	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
	at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:174)
	at org.eclipse.jface.viewers.StructuredViewer.fireDoubleClick(StructuredViewer.java:777)
	at org.eclipse.jface.viewers.AbstractTreeViewer.handleDoubleSelect(AbstractTreeViewer.java:1542)
	at org.eclipse.jface.viewers.StructuredViewer$4.widgetDefaultSelected(StructuredViewer.java:1211)
	at org.eclipse.jface.util.OpenStrategy.fireDefaultSelectionEvent(OpenStrategy.java:272)
	at org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrategy.java:329)
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:89)
	at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4256)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1066)
	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4054)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3642)
	at org.eclipse.jface.window.Window.runEventLoop(Window.java:823)
	at org.eclipse.jface.window.Window.open(Window.java:799)
	at org.eclipse.ui.internal.handlers.WizardHandler$New.executeHandler(WizardHandler.java:263)
	at org.eclipse.ui.internal.handlers.WizardHandler.execute(WizardHandler.java:283)
	at org.eclipse.ui.internal.handlers.HandlerProxy.execute(HandlerProxy.java:283)
	at org.eclipse.ui.internal.handlers.E4HandlerProxy.execute(E4HandlerProxy.java:97)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
	at java.base/java.lang.reflect.Method.invoke(Method.java:578)
	at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:58)
	at org.eclipse.e4.core.internal.di.InjectorImpl.invokeUsingClass(InjectorImpl.java:317)
	at org.eclipse.e4.core.internal.di.InjectorImpl.invoke(InjectorImpl.java:251)
	at org.eclipse.e4.core.contexts.ContextInjectionFactory.invoke(ContextInjectionFactory.java:173)
	at org.eclipse.e4.core.commands.internal.HandlerServiceHandler.execute(HandlerServiceHandler.java:156)
	at org.eclipse.core.commands.Command.executeWithChecks(Command.java:488)
	at org.eclipse.core.commands.ParameterizedCommand.executeWithChecks(ParameterizedCommand.java:485)
	at org.eclipse.e4.core.commands.internal.HandlerServiceImpl.executeHandler(HandlerServiceImpl.java:213)
	at org.eclipse.ui.internal.handlers.LegacyHandlerService.executeCommand(LegacyHandlerService.java:389)
	at org.eclipse.ui.internal.actions.CommandAction.runWithEvent(CommandAction.java:142)
	at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:580)
	at org.eclipse.jface.action.ActionContributionItem.lambda$4(ActionContributionItem.java:414)
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:89)
	at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4256)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1066)
	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4054)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3642)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$5.run(PartRenderingEngine.java:1155)
	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:338)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1046)
	at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:155)
	at org.eclipse.ui.internal.Workbench.lambda$3(Workbench.java:643)
	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:338)
	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:550)
	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:171)
	at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:152)
	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:203)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:136)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:402)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:255)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
	at java.base/java.lang.reflect.Method.invoke(Method.java:578)
	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:659)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:596)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1467)
Caused by: java.lang.ClassNotFoundException: org.eclipse.jface.databinding.swt.WidgetProperties cannot be found by org.eclipse.fx.ide.ui_3.8.0.202204150904
	... 67 more

Session Information:
eclipse.buildId=4.26.0.20221201-1200
java.version=19.0.1
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US
Framework arguments:  -product org.eclipse.epp.package.java.product
Command-line arguments:  -os win32 -ws win32 -arch x86_64 -product org.eclipse.epp.package.java.product
@Danny0626
Copy link

I have same problem with you.Are you solve?

@Danny0626
Copy link

image

@bjj33
Copy link
Author

bjj33 commented Dec 17, 2022

I have same problem with you.Are you solve?

It seems like WidgetProperties is deprecated in the 12-2022 version. Because of this I had to revert back to the 09-2022 version of Eclipse IDE. That should work.

@tomsontom
Copy link
Contributor

Well but deprecation should not lead to CNF!

@Danny0626
Copy link

Danny0626 commented Dec 17, 2022 via email

@AlAmine-dot
Copy link

I still have the same problem and can't revert to eclipse 22-09 because I started using it 2 weeks ago, does anybody have a solution to this ?

@1bright1
Copy link

I also have the same issue^

@tomsontom
Copy link
Contributor

If the class is really gone (I did not yet check the code) then I guess the only solution is to rewrite the code

@Danny0626
Copy link

Danny0626 commented Jan 1, 2023 via email

@1bright1
Copy link

1bright1 commented Jan 1, 2023

Did you pay or did you use the community free version for intellij

@Danny0626
Copy link

Danny0626 commented Jan 2, 2023 via email

@hichammounadi
Copy link

hichammounadi commented Jan 2, 2023

what if you create the file manually, and just right click on it and open it with scene builder

for me it works,

@ghost
Copy link

ghost commented Jan 2, 2023

yep that works ;D

@Danny0626
Copy link

Danny0626 commented Jan 3, 2023 via email

@ghost
Copy link

ghost commented Jan 3, 2023

Nice good luck ashpritx @.>於 2023年1月3日 週二,06:39寫道:

yep that works ;D — Reply to this email directly, view it on GitHub <#92 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AMIC5CGTTFOOUFMIO7UQUY3WQNKLPANCNFSM6AAAAAATBJTXYM . You are receiving this because you commented.Message ID: @.
>

did it work for you?

@Roykahure
Copy link

y

I have the same issue too. is there a better fix

@maoude
Copy link

maoude commented Jan 5, 2023

same problem here

@GithubKillsMyOpsec
Copy link

Bump! Looks like I will be using older versions of eclipse

@tomsontom
Copy link
Contributor

I'll try to find some spare time and fix this put I can not promise a timeframe

@ricardogomes-code
Copy link

For now the solution is to downgrade to eclipse-09-2022

@OfficialTeKniKo
Copy link

Same issue. Cant downgrade.

tomsontom added a commit that referenced this issue Feb 20, 2023
@tomsontom tomsontom self-assigned this Feb 20, 2023
@tomsontom tomsontom added this to the 3.10.0 milestone Feb 20, 2023
@ricardogomes-code
Copy link

Search for "Eclipse IDE 2022-09 R Packages"

@tomsontom
Copy link
Contributor

I've not yet tested it but the nightly build show work on 2022-12

@ricardogomes-code
Copy link

I tested it now with eclipse version 2022-12 (4.26.0) and it still doesn't work.

For now this only works in eclipse 2022-09.

@sdorof1
Copy link

sdorof1 commented Mar 16, 2023

Tested with Eclipse version: 2023-03 (4.27.0) Build id: 20230309-1520 and it still doesn'to work.

@adnanshafiwork
Copy link

anyone have solution of this its not working in my system.

@eidesconselleria
Copy link

Still not working in eclipse 2023-4... I'm using Eclipse Java for just some months, so I'm new on it. And I can't believe I'm having this issue, with the main tool for the main GUI applications library. Does this means nobody uses eclipse with JavaFX?
Next course I will use Microsoft visual Code or Netbeans

@adnanshafiwork
Copy link

adnanshafiwork commented Apr 27, 2023 via email

@ramsand16
Copy link

Hi I found a solution in this video i hope that you can fix the problem https://www.youtube.com/watch?v=WPIC-hK4_cg

@eidesconselleria
Copy link

eidesconselleria commented Jul 31, 2023 via email

@quinntf
Copy link

quinntf commented Jul 31, 2023 via email

@inmeiastic
Copy link

Hola, encontré una solución en este video, espero que puedas solucionar el problema https://www.youtube.com/watch?v=WPIC-hK4_cg

Me funcionó

@k-o-r-o
Copy link

k-o-r-o commented Oct 28, 2023

Hi I found a solution in this video i hope that you can fix the problem https://www.youtube.com/watch?v=WPIC-hK4_cg

Thank you so much dawg, I tired a lot of stuff but that worked. thanks g

@bettopv
Copy link

bettopv commented Nov 7, 2023

Still don't work in MacOS

@Apetree100122
Copy link

org/eclipse/jface/databinding/swt
/WidgetProperties at org.eclipse.fx.ide.ui.wizards.Abstract
JDTElementPage.createControl(AbstractJDTElementPage.java:
109)
at org.eclipse.jface.wizard.Wizard.createPageControls(Wizard.java:
178)
at org.eclipse.jface.wizard.WizardDialog.createPageControls(WizardDialog.java:
744)
at org.eclipse.jface.wizard.WizardDialog.setWizard(WizardDialog.java
:1182)
at org.eclipse.jface.wizard.WizardDialog.updateForPage(WizardDialog.java:
1235)
at org.eclipse.jface.wizard.WizardDialog.lambda$3(WizardDialog.java:
1223)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:
74)
at org.eclipse.jface.wizard.WizardDialog.showPage(WizardDialog.java:
1223)
at org.eclipse.ui.internal.dialogs.NewWizardSelectionPage.advanceToNextPageOrFinish(NewWizardSelectionPage.java
:73)
at org.eclipse.ui.internal.dialogs.NewWizardNewPage.lambda$0(NewWizardNewPage.java
:342)
at org.eclipse.jface.viewers.StructuredViewer$1.run(StructuredViewer.java:780)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java
:45)
at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java
:174)
at org.eclipse.jface.viewers.StructuredViewer.fireDoubleClick(StructuredViewer.jav
:777)
at org.eclipse.jface.viewers.AbstractTreeViewer.handleDoubleSelect(AbstractTreeViewer.java:
1542)
at org.eclipse.jface.viewers.StructuredViewer$4.widgetDefaultSelected(StructuredViewer.java:
1211)
at org.eclipse.jface.util.OpenStrategy.fireDefaultSelectionEvent(OpenStrategy.java:
272)
at org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrategy.java
:329)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:
89)
at org.eclipse.swt.widgets.Display.sendEvent(Display.java:
4256)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:
1066)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java
:4054)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java
:3642)
at org.eclipse.jface.window.Window.runEventLoop(Window.java
:823)
at org.eclipse.jface.window.Window.open(Window.java:
799)
at org.eclipse.ui.internal.handlers.WizardHandler$New.executeHandler(WizardHandler.java:
263)
at org.eclipse.ui.internal.handlers.WizardHandler.execute(WizardHandler.java
:283)
at org.eclipse.ui.internal.handlers.HandlerProxy.execute(HandlerProxy.java:283)
at org.eclipse.ui.internal.handlers.E4HandlerProxy.execute(E4HandlerProxy.java:
97)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:
104)
at java.base/java.lang.reflect.Method.invoke(Method.java
:578)
at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java
:58)
at org.eclipse.e4.core.internal.di.InjectorImpl.invokeUsingClass(InjectorImpl.java
317)
at org.eclipse.e4.core.internal.di.InjectorImpl.invoke(InjectorImpl.java:251)
at org.eclipse.e4.core.contexts.ContextInjectionFactory.invoke(ContextInjectionFactory.java
173)
at org.eclipse.e4.core.commands.internal.HandlerServiceHandler.execute(HandlerServiceHandler.java
:156)
at org.eclipse.core.commands.Command.executeWithChecks(Command.java:488)
at org.eclipse.core.commands.ParameterizedCommand.executeWithChecks(ParameterizedCommand.java
:485)
at org.eclipse.e4.core.commands.internal.HandlerServiceImpl.executeHandler(HandlerServiceImpl.java
:213)
at org.eclipse.ui.internal.handlers.LegacyHandlerService.executeCommand(LegacyHandlerService.java
:389)
at org.eclipse.ui.internal.actions.CommandAction.runWithEvent(CommandAction.java
:142)
at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:580)
at org.eclipse.jface.action.ActionContributionItem.lambda$4(ActionContributionItem.java
:414)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:
89)
at org.eclipse.swt.widgets.Display.sendEvent(Display.java:
4256)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java
:1066)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.jav
:4054)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java
:3642)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$5.run(PartRenderingEngine.java:
1155)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java
:338)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:
1046)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(
{{{E4W}}}}
155)
at org.eclipse.ui.internal.Workbench.lambda
$ 3
(
Workbench.java
:643
)
at org.eclipse.core.databinding.observable.Realm.runWithDefault
(
Realm.java:338
)at org.eclipse.ui.internal.Workbench.createAndRunWorkbench
(Workbench.java
:550
)at org.eclipse.ui.PlatformUI.createAndRunWorkbench
(
PlatformUI.java
:171
)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java
:152)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java
:203)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:
136
)
org.eclipse.core.run
time.int
.apt
Ec
ALert
art
(
Ecl
104
)
ES
(
ES
:402
)
r.ES
(
ES
255
)
.DMHA
(
DMHA
:104)
M
(
M
578
)
M
(
M
:659)
MR
(
Main.
596)
:1467
)
C .CNFE:
org.eclipse.jf.databinding.swt
WP
found by
org.eclipse.fx
Ide.ui

                                  380.
                               202
                             204
                                 150
                            904
                           67

more
Session
If eclipse.Id= 674 260.
202
212
011
200
java. ve rs i n=
190
1
= OC
BL
OS-win
32, ARCH=x
86 [ ]
64, WS=win
32, [ ]
NL {en} ]
USF arguments: ]
-product org.eclipse.epp.package.java.product C-line arguments:
-arc -osx -ws win
32 - win
32 -h
86
64 -product

@Apetree100122
Copy link

Numbers go by themselves
The ones I broke up all add up top to bottom and the capital letters are Roman numerals

@moura92
Copy link

moura92 commented Nov 27, 2023

Olá, encontrei uma solução neste vídeo, espero que você possa resolver o problema
https://www.youtube.com/watch?v=WPIC-hK4_cg

vim só agradecer pelo video, me ajudou a resolver o problema. muito obrigado!!!

@jcjr
Copy link

jcjr commented Aug 13, 2024

Hi I found a solution in this video i hope that you can fix the problem https://www.youtube.com/watch?v=WPIC-hK4_cg

This tricks is correct. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests