eclipse-efx / efxclipse-eclipse

Eclipse Public License 2.0
15 stars 5 forks source link

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

Open bjj33 opened 1 year ago

bjj33 commented 1 year ago

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 commented 1 year ago

I have same problem with you.Are you solve?

Danny0626 commented 1 year ago

image

bjj33 commented 1 year ago

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 commented 1 year ago

Well but deprecation should not lead to CNF!

Danny0626 commented 1 year ago

Thank you very much

bjj33 @.***>於 2022年12月18日 週日,00:12寫道:

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.

— Reply to this email directly, view it on GitHub https://github.com/eclipse-efx/efxclipse-eclipse/issues/92#issuecomment-1356319540, or unsubscribe https://github.com/notifications/unsubscribe-auth/AMIC5CEQN7OBWO65WUREKXDWNXQ5ZANCNFSM6AAAAAATBJTXYM . You are receiving this because you commented.Message ID: @.***>

AlAmine-dot commented 1 year ago

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 commented 1 year ago

I also have the same issue^

tomsontom commented 1 year ago

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 commented 1 year ago

I try to change my environment and use intellij 2021.3.3 it’s work

Tom Schindl @.***>於 2022年12月31日 週六,07:43寫道:

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

— Reply to this email directly, view it on GitHub https://github.com/eclipse-efx/efxclipse-eclipse/issues/92#issuecomment-1368124931, or unsubscribe https://github.com/notifications/unsubscribe-auth/AMIC5CF4E5XLLLWFNTHIU4TWP5XRZANCNFSM6AAAAAATBJTXYM . You are receiving this because you commented.Message ID: @.***>

1bright1 commented 1 year ago

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

Danny0626 commented 1 year ago

Don’t need to pay.Just install it and notice the version of IntelliJ

1bright1 @.***>於 2023年1月2日 週一,06:29寫道:

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

— Reply to this email directly, view it on GitHub https://github.com/eclipse-efx/efxclipse-eclipse/issues/92#issuecomment-1368553477, or unsubscribe https://github.com/notifications/unsubscribe-auth/AMIC5CEXIRP7N6ZVRPU4Y3DWQIAMNANCNFSM6AAAAAATBJTXYM . You are receiving this because you commented.Message ID: @.***>

hichammounadi commented 1 year ago

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

for me it works,

ghost commented 1 year ago

yep that works ;D

Danny0626 commented 1 year ago

Nice good luck

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

yep that works ;D

— Reply to this email directly, view it on GitHub https://github.com/eclipse-efx/efxclipse-eclipse/issues/92#issuecomment-1369251689, or unsubscribe https://github.com/notifications/unsubscribe-auth/AMIC5CGTTFOOUFMIO7UQUY3WQNKLPANCNFSM6AAAAAATBJTXYM . You are receiving this because you commented.Message ID: @.***>

ghost commented 1 year ago

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 commented 1 year ago

y

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

maoude commented 1 year ago

same problem here

GithubKillsMyOpsec commented 1 year ago

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

tomsontom commented 1 year ago

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

ricardogomes-code commented 1 year ago

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

OfficialTeKniKo commented 1 year ago

Same issue. Cant downgrade.

ricardogomes-code commented 1 year ago

Search for "Eclipse IDE 2022-09 R Packages"

tomsontom commented 1 year ago

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

ricardogomes-code commented 1 year ago

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 commented 1 year ago

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

adnanshafiwork commented 1 year ago

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

eidesconselleria commented 1 year ago

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 commented 1 year ago

Try to use jdk 1.8

On Thu, 27 Apr 2023 at 12:05 AM, eidesconselleria @.***> wrote:

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

— Reply to this email directly, view it on GitHub https://github.com/eclipse-efx/efxclipse-eclipse/issues/92#issuecomment-1523909696, or unsubscribe https://github.com/notifications/unsubscribe-auth/ARTL7IJRODTWT53LJL2WFQTXDFWVXANCNFSM6AAAAAATBJTXYM . You are receiving this because you commented.Message ID: @.***>

ramsand16 commented 1 year ago

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 commented 1 year ago

Thank you very much!!! I'll check it out,


De: Ramses @.> Enviado: domingo, 30 de julio de 2023 5:50 Para: eclipse-efx/efxclipse-eclipse @.> Cc: MARTINEZ MONDEJAR, FELIP @.>; Comment @.> Asunto: Re: [eclipse-efx/efxclipse-eclipse] Cannot create a FXML document with JavaFX and SceneBuilder on Eclipse (Issue #92)

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

— Reply to this email directly, view it on GitHubhttps://github.com/eclipse-efx/efxclipse-eclipse/issues/92#issuecomment-1657042148, or unsubscribehttps://github.com/notifications/unsubscribe-auth/A5TVKXYD2GMSBSIUA5BKOP3XSXRX3ANCNFSM6AAAAAATBJTXYM. You are receiving this because you commented.Message ID: @.***>

quinntf commented 1 year ago

It worked for me Ubuntu 22.04 Eclipse 23-06, Oracle JDK 20.0.4

Thanks very much!

On Sat, Jul 29, 2023 at 11:50 PM Ramses @.***> wrote:

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

— Reply to this email directly, view it on GitHub https://github.com/eclipse-efx/efxclipse-eclipse/issues/92#issuecomment-1657042148, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABCXQXHRVAIJTRVDXQT5GXTXSXRX3ANCNFSM6AAAAAATBJTXYM . You are receiving this because you are subscribed to this thread.Message ID: @.***>

-- TQ

inmeiastic commented 1 year ago

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 commented 1 year ago

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 commented 12 months ago

Still don't work in MacOS

Apetree100122 commented 11 months ago

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 commented 11 months ago

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

moura92 commented 11 months ago

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 commented 2 months ago

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.